Loading…
Topic
Reranking
2 posts about Reranking. Every summary links to the original.
- 2 posts
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
MongoDB Mastra Integration Adds Hybrid Search, Auto Embedding, and Reranking
Mastra, an open-source TypeScript framework for building agents, previously required developers to copy operational data into a separate vector collection, generate embeddings, merge semantic and keyword results, and track IDs for follow-up fetches, creating data drift. A new MongoDB integration combines Hybrid Search, Automated Embedding, Bring Your Own Collection (BYOC), pre-filtering, and Native Reranking into a single query. Automated Embedding uses Voyage AI to generate and maintain embeddings for text fields automatically, while BYOC allows Mastra to search the original collection directly, avoiding a separate retrieval copy. Pre-filtering narrows vector search candidates inside $vectorSearch using filterFields, and Native Reranking reorders results for relevance. Together, these features eliminate separate embedding sync jobs and allow one query to handle both semantic intent and concrete constraints, though Native Reranking requires MongoDB Atlas 9.0 with reranking enabled.
Context Engineering Has a Retrieval Issue: Introducing rerank-3 and Native Reranking
AI agents require precise context retrieval, not larger windows, and MongoDB’s new Rerank-3 and Rerank-3-lite models outperform Cohere Rerank v4.0 Pro by 2.14% and Qwen3-Reranker-8B by 3.31% overall, with greatest improvements on long documents and code. The $rerank native aggregation stage rescores candidate sets index-free within MongoDB, while Automated Embedding generates and refreshes vectors near-real-time to prevent model version drift. This unified platform eliminates separate vendors and external API calls, supporting lexical, vector, and hybrid search directly against operational data without moving or syncing. The result is simpler retrieval architecture that improved Gravity’s accuracy and cut latency by roughly 50% by better discriminating between strong and weak matches. Retrieval quality forms one layer of MongoDB’s broader agent platform, which also includes performance scaling with Atlas Infinite and agent memory with Atlas Agent Engine.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.