Skip to main content

Embedding Configs

Objective: turn on meaning-based (vector) search.

Done when: a search with your embedding config selected finds results that match the meaning of your query, not only its words.

What an Embedding Config Does​

Without one, Yew finds results by matching the words you typed. An embedding config adds a second kind of search: an embedding model turns your content and your query into vectors, and Yew finds content whose meaning is close to the query. Yew combines both kinds of result into one list.

An embedding config is optional. Keyword search works on its own, and it's the right choice on modest hardware where you don't want to run a model.

Each config is one embedding model. Yew sends it your content in chunks when it indexes, and sends it your query each time you search with that config.

Before You Start​

You need one of these:

  • A local model server, such as Ollama, with an embedding model pulled (for example ollama pull qwen3-embedding:0.6b or ollama pull nomic-embed-text). Ollama isn't part of the Yew install, so run it yourself.
  • An API key for a hosted embedding provider: OpenAI, Voyage AI, Google or Mistral. That provider is sent your content to embed, and bills your key.

1. Create the Config​

  1. Open Embedding Configs in the sidebar and click New Config.
  2. Fill in the form:
FieldWhat to enter
Name (optional)A label for the dropdowns, such as "Qwen3 on Ollama"
Providerollama, openai, voyage, google-genai or mistralai
ModelThe model name, such as qwen3-embedding:0.6b
Base URL (self-hosted providers)For Ollama, the address of your Ollama server. For OpenAI, only needed for an OpenAI-compatible server. google-genai and mistralai ignore it.
API Key (hosted providers)For hosted providers
Chunk SizeCharacters per chunk. The form starts at 1000. If you clear the field, Yew uses 2000.
Chunk OverlapCharacters each chunk shares with the next. The form starts at 150. If you clear the field, Yew uses 200. Keep it smaller than Chunk Size.
  1. Click Create.

Yew sends the model one test request when you save. If the provider, model, address or key is wrong, you see the error then, and nothing is saved. On success, Yew records the model's vector size and creates a search index for this config.

The Base URL is reached from inside Docker

The backend container calls the model server, not your browser. localhost in the Base URL means the backend container itself, not your machine. Use your machine's LAN address instead, such as http://192.168.1.50:11434, and make sure Ollama listens on that address (set OLLAMA_HOST=0.0.0.0 for Ollama).

Providers​

ProviderNeedsNotes
ollamaBase URL, modelNo API key
openaiAPI key, modelSet Base URL for an OpenAI-compatible server, such as LM Studio, vLLM or Azure OpenAI
voyageAPI key, modelVoyage AI, the embedding provider Anthropic recommends
google-genaiAPI key, model
mistralaiAPI key, model

2. Attach It to Your Integrations​

A config only covers integrations it's attached to. On the config's card, click Attach Integrations, pick the integrations, and click Continue. Yew warns that attaching reindexes the integration, which may take some time. Click Attach to start. You can also attach from an integration's Search & Embeddings tab in My Integrations.

Attaching starts a reindex that embeds everything the integration has already synced. It runs in the background. A large integration can take hours with a local model. Content synced after that is embedded as it arrives.

3. Search With It​

On the Search page, open Show Advanced Options and pick your config under Embedding Model. Choose Do not use Vector Search to turn it off. To use it on every search, click Set as Default on its card, or pick it in Settings.

Changing a Config​

You can rename a config with the pencil icon, but you can't change its model or chunk size, because everything already indexed was embedded with them. To switch models, create a new config, attach it, and delete the old one when you're happy with the results.

You can attach more than one config to the same integration to compare models side by side.

Deleting a Config​

Click the delete icon on its card. Deleting detaches the config from every integration and deletes its search index and every vector in it. This can't be undone. If it was your default, the default is cleared.

Choosing Chunk Size​

Chunk size is counted in characters, not tokens. Smaller chunks match short, specific passages better. Larger chunks keep more context together, which suits long documents. The default (1000 characters with 150 overlap) is a reasonable start for email and web pages.