Harness the Power of Atlas Search and Vector Search with $rankFusion
Blog post from MongoDB
Delivering highly relevant search results in data-rich applications can be achieved through a hybrid search system implemented in MongoDB Atlas. This method addresses the limitations of relying solely on full-text search or vector search by combining their strengths to handle complex user queries more effectively. The use case discussed involves categorizing queries to feed a large language model (LLM) with relevant context, exemplified by a smart agent helping customers find products in an online home improvement store. Hybrid search merges results from full-text search, which excels at fuzzy matching and typo tolerance, and vector search, which excels at understanding semantic similarities, through advanced aggregation techniques like Reciprocal Rank Fusion (RRF). This approach allows for a nuanced understanding of user intent, providing accurate and comprehensive search results. The implementation involves creating search indexes for both types of searches and using MongoDB Atlas’s native $rankFusion to intelligently combine results, thus enhancing search relevance and user satisfaction while maintaining performance.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Vector Search | 44 | 1,303 | 288 | 128 | -18% |
| LLM | 3 | 5,556 | 752 | 184 | +14% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.