MongoDB expands Mastra integration with hybrid search and reranking
Published:
MongoDB's integration for the TypeScript framework Mastra combines hybrid search with automated embeddings, pre-filtering and reranking. Developers can query existing MongoDB collections.
MongoDB has expanded its integration for the open-source Mastra framework. Starting with integration version 1.28, a single query can combine hybrid search with automated embeddings, Bring Your Own Collection, pre-filtering and native reranking. Hybrid search combines semantic and keyword matches. Pre-filters restrict candidates using specified fields, while reranking reorders the results. Bring Your Own Collection lets Mastra search existing MongoDB documents directly and return full documents. Automated embeddings generate and maintain vectors for configured text fields. MongoDB states that native reranking requires an Atlas cluster running version 9.0 with reranking enabled. The company points users to its documentation for additional automated embedding requirements.
Why it matters
Development teams can combine semantic and keyword search with result processing in one query. Existing collections do not need a separate retrieval copy for this workflow.
Source retrieved: 2026-11-28