MongoDB expands Mastra integration with combined search
Published:
The MongoDB integration for Mastra combines hybrid search with automated embeddings and reranking.
MongoDB has expanded its integration for the TypeScript framework Mastra. In Mastra 1.28, hybrid search can be combined with automated embeddings, Bring Your Own Collection, pre-filtering and native reranking in a single query. Hybrid search combines semantic and keyword matching, while reranking reorders the candidates. Automated embeddings generate and maintain vectors for text fields and queries. Bring Your Own Collection lets applications search existing MongoDB collections and return full documents without creating a separate retrieval copy. Pre-filters narrow vector-search candidates and also apply to keyword results.
Why it matters
Development teams can build Mastra retrieval workflows on existing collections without synchronizing a separate search copy for this approach.
Source retrieved: 2026-12-03