How It Works
- Insert: When you add content, each chunk is converted to a vector
- Store: Vectors are saved in your vector database
- Search: Queries are embedded and matched against stored vectors by similarity
OpenAIEmbedder by default, but you can swap in any supported embedder.
Configuration
Using with Knowledge
Batch Embeddings
Process multiple texts in a single API call to reduce requests and improve performance:Best Practices
Supported Embedders
Choosing an Embedder
Key factors:
- Hosted vs local: Local for privacy and no API costs; hosted for quality and convenience
- Latency and cost: Smaller models are cheaper and faster; larger models often retrieve better
- Language support: Ensure your embedder supports your content’s languages
- Dimension size: Match your vector database’s expected embedding dimensions
Next Steps
OpenAI Embedder
Default embedder setup
Ollama Embedder
Local embeddings for privacy
Vector DB
Store your embeddings
Chunking
Prepare content for embedding