Why use multiple embedders
A single embedder is a good fit when all your searches are the same type. But real applications often need different search modes:- Text + image search: use a text-optimized embedder alongside a multimodal embedder, so users can search with keywords or with images
- Precision vs speed: use a large, high-quality model for precise searches and a smaller, faster model for search-as-you-type suggestions
- Different quality levels: use a small model at full precision for quick queries and a large model with binary quantization for deep searches
- Multilingual: use a language-specific model for your primary language and a multilingual model as a fallback
- Federated search: combine full-text, semantic, and image results in a single federated search request, each powered by the best model for its task
Configure multiple embedders
Add multiple keys to theembedders setting. Each key is a named embedder with its own configuration:
text for keyword-aware semantic search and image for visual similarity search.
Search with a specific embedder
Specify which embedder to use with thehybrid.embedder parameter:
Combine embedders with federated search
The most powerful use case for multiple embedders is federated search. You can run full-text, semantic, and image searches in a single request and merge the results:- Full-text search (
semanticRatio: 0.0) with the highest weight for keyword-relevant results - Semantic text search (
semanticRatio: 1.0) for meaning-based matches - Image search using a completely different model for visual similarity
Considerations
- Each embedder generates and stores its own vectors. More embedders means more disk usage and longer indexing times.
- You can use binary quantization on individual embedders to reduce storage (e.g., quantize the large model but keep the small one at full precision).
- Composite embedders can be combined with multiple embedders: use a fast local model for search and a cloud API for indexing, independently for each named embedder.
Next steps
Federated search
Merge results from multiple queries into one ranked list
Binary quantization
Reduce storage for high-dimensional embedders
Image search
Set up multimodal embedders for image search
Choose an embedder
Compare embedding providers for your use case