Skip to main content
Meilisearch supports configuring multiple embedders on the same index. Each embedder generates its own set of vectors, and you can target a specific embedder at search time. This lets you combine different search strategies (text, image, semantic) with specialized models for each.

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 the embedders setting. Each key is a named embedder with its own configuration:
This configures two embedders: text for keyword-aware semantic search and image for visual similarity search.

Search with a specific embedder

Specify which embedder to use with the hybrid.embedder parameter:
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:
This single request combines:
  1. Full-text search (semanticRatio: 0.0) with the highest weight for keyword-relevant results
  2. Semantic text search (semanticRatio: 1.0) for meaning-based matches
  3. Image search using a completely different model for visual similarity
Meilisearch merges all results into one ranked list using the federation weights.

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