What Is Yew Search
Yew Search is a search engine for your own data. It copies content from the places you keep it (your Gmail, your calendar, an FTP server, websites, your Jellyfin library's subtitles) into one index on your own hardware, and lets you search all of it from one search box.
Everything runs on your machine. Your content is stored in your own Postgres and OpenSearch containers. The AI models Yew uses can be your own, self-hosted on Ollama or a similar server, so nothing has to leave your network. You can also use a hosted provider instead, such as Anthropic or OpenAI for summaries and the agent, OpenAI or Voyage AI for embeddings, and Cohere, Jina or Voyage AI for reranking and citations.
How Search Works
Yew ranks results in up to three stages:
- Keyword search (BM25). Yew matches the words you type, the way a classic search engine does.
- Vector search. With an embedding config, Yew also finds results that mean the same thing as your query, even when they use different words, and combines them with the keyword results.
- Reranking. With a rerank config, a reranker model reads your query and each top result together and reorders them by relevance.
What Else It Can Do
- Summarize. Add a summary config and Yew writes a short answer from your top results, with links to the sources it used.
- Run an agent. Add the agent for more involved questions. It runs several searches, reads the results, and writes an answer that cites them.
- Connect other AI tools. Yew includes an MCP server, so AI tools that support MCP can search your data with an API key.
See It Working
answers.yewsearch.com is Yew Search running over these docs. Ask it a question and you get results, a summary with its sources, and the agent, the same way your own install works on your data. Nothing to install, and no account needed.
How It Fits Together
A basic install is six Docker containers that you run with one Docker Compose file:
| Container | What it does |
|---|---|
postgres | Stores your users, settings and every piece of content Yew has copied |
redis | Stores login sessions |
opensearch | The search index |
hatchet | The task queue that runs each integration's syncs in the background |
backend | The API, plus the workers that sync your integrations |
frontend | The web app you use in your browser |
The web crawler and the agent are optional add-ons, each with its own Compose file. You add them when you want them.
Where to Start
Yew Search is in alpha. Expect changes between releases, and back up your data before you upgrade.
License
Yew Search is Fair-code. You can run it, change it and share it for yourself, your family and your homelab. See the License FAQ.