mongodb-search-and-ai

Design MongoDB Atlas Search indexes and queries for lexical, vector, and hybrid search.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/jeremylasne92-hue/siteweb2 --skill mongodb-search-and-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mongodb-search-and-ai
Source: https://github.com/jeremylasne92-hue/siteweb2/tree/main/.agents/skills/mongodb-search-and-ai
Command: npx skills add https://github.com/jeremylasne92-hue/siteweb2 --skill mongodb-search-and-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Users struggle to design and fine‑tune MongoDB Atlas Search solutions that span lexical, semantic, and combined (hybrid) use cases, often missing best‑practice index configurations and query patterns.

Core Features & Use Cases

  • Search Type Guidance: Determines whether lexical, vector, or hybrid search best fits a given user scenario.
  • Index Creation Workflow: Generates complete JSON index definitions for Atlas Search, vector, and hybrid pipelines, with explicit user approvals.
  • Query Construction & Optimization: Provides aggregation pipelines for $search, $vectorSearch, $rankFusion, and $scoreFusion, including performance tips and version checks.
  • Read‑Only Mode Support: Supplies full index JSON for manual creation when execution permissions are limited.
  • Use Cases: Building autocomplete/typeahead, semantic similarity for recommendation engines, or blended relevance ranking for e‑commerce product catalogs.

Quick Start

Ask the skill to design an Atlas Search index for a collection named 'products' that supports keyword and semantic searches.

Frequently Asked Questions about mongodb-search-and-ai

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a MongoDB Atlas Search index for lexical and semantic hybrid search?

To create a MongoDB Atlas Search index for hybrid search, you need a complete JSON index definition combining lexical and vector search configurations. This process generates index definitions for Atlas Search, vector, and hybrid pipelines with explicit user approvals before creation.

What is the difference between lexical, vector, and hybrid search in MongoDB Atlas?

Lexical search matches exact keywords, vector search determines semantic similarity for recommendations, and hybrid search blends both relevance rankings. MongoDB Atlas determines which approach best fits your scenario, whether building autocomplete, semantic similarity, or blended relevance for e-commerce catalogs.

How do I optimize MongoDB aggregation pipelines for vector search and score fusion?

To optimize MongoDB vector search and score fusion pipelines, construct aggregations using $search, $vectorSearch, $rankFusion, and $scoreFusion. This process includes performance tips and version checks to tune query formulation effectively for your collections.

Can I generate MongoDB Atlas Search index JSON without direct database execution permissions?

Yes, you can generate MongoDB Atlas Search index JSON without direct execution permissions using read-only mode. This mode supplies the full index JSON definition for manual creation when execution permissions are limited or unavailable.

Do I need MongoDB tools to inspect schemas before building a vector search pipeline?

Yes, building a vector search pipeline requires access to MongoDB tools for listing databases, inspecting schemas, and creating indexes. These tools gather the necessary collection schema information to design accurate lexical, semantic, or combined search pipelines.

What is the best way to build an autocomplete typeahead feature using MongoDB Atlas Search?

The best way to build an autocomplete typeahead feature with MongoDB Atlas Search is designing a specific lexical search index and aggregation pipeline. This provides keyword matching guidance and query construction tailored for real-time text completion scenarios.