Summary Configs
Objective: get a written answer above your search results.
Done when: a search shows a summary on the Summary tab, with links to the sources it used.
What a Summary Config Does
A summary config picks the chat model that reads your top search results and writes a short answer from them. Yew sends it the best-matching passage from each of the top 10 results (or your rerank config's Top N, up to 20), and the summary streams in on the first page of results. A summary is at most 1,024 tokens long, and stops if the model takes longer than 2 minutes.
Add a citation config to show which sources actually support the summary.
Before You Start
You need an API key for a chat model provider (Anthropic, OpenAI, Google or Mistral), or a local model server such as Ollama with a chat model pulled. With a hosted provider, your top results are sent to that provider each time a summary runs, and it bills your key.
1. Create the Config
- Open Summary Configs in the sidebar and click New Config.
- Fill in the form:
| Field | What to enter |
|---|---|
| Name (optional) | A label for the dropdowns |
| Provider | anthropic, openai, ollama, google-genai or mistralai |
| Model | The model name, such as claude-sonnet-5-5 |
| Base URL (optional) | Leave blank for the provider's own API. Set it for a self-hosted or proxied server. |
| API Key | Needed for hosted providers, not for Ollama |
| Prompt (optional) | A personality for answers, such as "Answer briefly and say which document each fact came from." Up to 20,000 characters. |
- Click Create.
Yew sends the model one short test message when you save, so a wrong key, model or address shows an error now instead of on your first search. On a hosted provider that costs a few tokens.
For a local model, the Base URL is reached from the backend container, so use your machine's LAN address, not localhost. See the note on Embedding Configs.
To use a server that speaks the OpenAI API (vLLM, LM Studio, OpenRouter, Azure OpenAI), choose openai and set its Base URL.
2. Search With It
On the Search page, open Show Advanced Options and pick your config under Summary Model. Choose No Summary to turn it off. Changing it after a search runs the search again. To use it on every search, click Set as Default on its card, or pick it in Settings. The default has a yellow star.
The Summary tab only appears once you have at least one summary config. With No Summary selected, it shows "No Summary Generated".
Editing and Deleting
Click the edit icon to change a config. Leave API Key blank to keep the saved key. Every save sends a new test message, even when you only changed the name. A Base URL can't be removed by clearing the field: a blank Base URL keeps the saved one. To stop using a Base URL, create a new config without one and delete the old one.
Deleting a config also deletes its saved API key. This can't be undone. If it was your default, the default is cleared.