MongoDB Hybrid Search: Lexical and Vector in One Query

Learn how MongoDB hybrid search combines keywords and meaning, when reranking helps, and where to compare credits on AI Perks.

MongoDBHybrid SearchVector SearchAI SearchRAGAI Perks
Andrew
Andrew
AI Perks Team
12,543•

Quick Answer

MongoDB hybrid search combines lexical search, which matches words, and vector search, which retrieves by semantic relevance, in one query. It can help when an AI app needs both exact keyword matches and relevant results phrased differently. MongoDB also offers native reranking. Find MongoDB credits and other AI offers at getaiperks.com.

What is hybrid search in MongoDB?

MongoDB hybrid search combines lexical search and vector search in one query. Lexical search helps find exact words and phrases, while vector search can surface results related by meaning, so an application can use both kinds of relevance.

MongoDB for Startups

For teams considering the infrastructure, the catalogue lists up to $15,000 in MongoDB credits for MongoDB Atlas and Voyage AI workloads. The amount depends on funding stage and investment partner, and the perk card has the details.

MongoDB says hybrid search runs directly on live operational data, avoiding a separate search system to sync and maintain. MongoDB describes native fusion stages for combining lexical and vector results in one query.


When do keywords and meaning both matter?

Consider a support assistant. A user searching for an exact error code needs results containing that code, while someone describing the same issue in different words may need results related by meaning. Hybrid search brings those retrieval approaches together instead of making the app choose only one.

This distinction can matter for product names, identifiers, and quoted phrases, where matching a specific term is useful. It can also matter when a user describes an idea without using the wording found in the relevant document. These examples illustrate the two search approaches, not a guarantee that any query will return a particular result.

For an AI app, the practical question is whether its users need both exact-term precision and semantic relevance. If queries rely on exact wording alone, lexical search may address that need; if users phrase requests in varied ways, vector search can add meaning-based retrieval. Hybrid search is relevant when both patterns occur.


How can reranking change the results sent to an LLM?

MongoDB supports native reranking through a $rerank stage, using Voyage AI reranker models inside the MongoDB query engine. Reranking can place more relevant results higher in the retrieved set before the application sends results to its LLM.

MongoDB says native reranking sends only the most relevant results to the LLM, reducing token costs and latency in agentic and multi-step retrieval pipelines. That describes the stated effect of reranking; it does not establish a specific reduction for every app or query.

A useful design question is how much retrieved context the generation step actually needs. If an app sends a broad set of results to an LLM, reranking may help select a more relevant subset. Teams can compare the MongoDB perk card with other catalogue listings when considering credits for search and generation workloads.


What should teams consider about embeddings and cost?

MongoDB Automated Embedding can generate vector embeddings inside MongoDB using a Voyage AI model at ingest, update, and query time, when an autoEmbed field is defined in a vector search index. The embedding models are billed according to actual token usage, so embedding activity is a cost consideration alongside database and retrieval choices.

MongoDB Vector Search also supports embeddings from any provider under the service's 4096-dimension limit. Automated Embedding supports scalar and binary quantization options, including binary with rescoring using float vectors and binary without rescoring.

For vector-search behavior, MongoDB states that exact vector search can maintain sub-second latency for unfiltered queries up to 10,000 documents. That statement is specific to the described query conditions, rather than a general performance promise for every workload.

For credit planning, distinguish Atlas charges from Voyage AI usage. MongoDB says Atlas credits apply to future MongoDB Atlas charges, not past usage, and cover Voyage AI usage only when it goes through the Atlas API. Otherwise, Voyage AI tokens are provided separately.


What AI credit offers can you compare?

The table shows catalogue amounts, including MongoDB's listed amount and three other offers. These are separate listings, not a promise that the values can be combined.

CompanyPerk valueHow to get
MongoDBUp to $15,000Get this perk
Claude (via program)$100,000Get this perk
OpenAI (via program)$2,500Get this perk
Google Cloud$350,000Get this perk

Sum of listed headline values: $467,500. The listings are separate offers, not a combined award.

The catalogue also has guides to free database credits for startups, free vector database credits, and the MongoDB Atlas free tier. Compare those resources with the MongoDB card if you're evaluating search infrastructure and AI workload costs.


How do you get started?

Step 1: Find MongoDB through AI Perks. Open the MongoDB perk card to review its details, including the offer amount and information about how it applies to Atlas and Voyage AI workloads.

Step 2: Check how the offer maps to your workload. Separate the expected Atlas charges from Voyage AI usage, and note whether Voyage AI usage goes through the Atlas API. The card is the place to review the offer-specific details.

Step 3: Plan retrieval around the query. Decide whether users need exact-term matches, semantic results, or both. If the app sends retrieved context to an LLM, consider whether reranking fits the retrieval flow.

Step 4: Compare the other catalogue listings. Review the available offers for your database and generation needs, then use each card for its own details. The catalogue is a comparison point, not a statement that separate offers combine.


MongoDB hybrid search FAQ

What is the difference between lexical and vector search?

Lexical search focuses on matching words and phrases, while vector search retrieves based on semantic relevance. MongoDB hybrid search combines both in one query, which can help when an app needs exact keyword precision as well as results related by meaning. The right balance depends on the kinds of queries the app receives.

Does MongoDB hybrid search use live data?

MongoDB says hybrid search runs directly on live operational data, helping teams improve retrieval without adding a separate search system to sync and maintain. For search feature details and information about the available MongoDB offer, review the MongoDB perk card.

What does MongoDB's $rerank stage do?

The $rerank stage uses Voyage AI reranker models inside the MongoDB query engine. MongoDB says native reranking sends only the most relevant results to the LLM, reducing token costs and latency in agentic and multi-step retrieval pipelines. The actual effect for an application can vary with its retrieval flow.

Do MongoDB Atlas credits cover Voyage AI usage?

MongoDB says Atlas credits cover Voyage AI usage only when that usage goes through the Atlas API. Otherwise, Voyage AI tokens are provided separately. Credits apply to future Atlas charges, not past usage. Check the MongoDB perk card for the offer details.

Where can I compare MongoDB credits with other AI offers?

Use AI Perks to compare MongoDB's listed amount with other catalogue offers. Each perk card has its own details, so review the MongoDB card for its Atlas and Voyage AI offer and the relevant cards for other companies before planning costs.


Explore the MongoDB offer

Get free AI credits at getaiperks.com →

Compare AI offers and open the MongoDB perk card at getaiperks.com.

This content is for informational purposes only and may contain inaccuracies. Credit programs, amounts, and eligibility requirements change frequently. Always verify details directly with the provider.