Take an OpenSearch search application from requirements to a running cluster — BM25, dense and sparse vectors, hybrid retrieval, agentic search and RAG, with relevance evaluation built in.
MongoDB Search & AI Skill
MongoDB's official skill for choosing between Atlas Search, Vector Search and Hybrid Search, then building the right indexes and queries for the use case.
Install
Other ways to install
About
- Routes a use case to Atlas Search, Vector Search or Hybrid Search
- Inspects databases, collections, schema, indexes and cluster version first
- Asks clarifying questions instead of guessing at vague requirements
- Describes and gets approval for indexes before creating them
- Falls back to emitting index JSON when running read-only
- Covers autocomplete, fuzzy matching, faceting and RAG retrieval
Atlas Search, Atlas Vector Search and hybrid retrieval solve overlapping problems, and picking the wrong one costs a rebuilt index rather than a tweaked query. This official MongoDB skill makes the agent do the selection properly before it writes anything.
Discovery before recommendation
The workflow starts with inspection, not with a suggestion: list-databases and list-collections to see what exists, collection-schema to read the field structure, collection-indexes to see what is already indexed, and atlas-inspect-cluster to learn the cluster's MongoDB version — because index features differ by version. If the request is vague, the skill has the agent ask what users are actually searching for, which fields hold the content, whether typo tolerance or filters or autocomplete are needed, before proposing anything.
Choosing the search type
It then routes the use case: Atlas Search for keyword matching with relevance scoring, fuzzy matching, autocomplete and typeahead, faceted filtering and language-specific analysis; Vector Search for semantic similarity, natural-language understanding, RAG retrieval and cross-modal search; Hybrid Search when the query genuinely needs both, such as combining a semantic concept with a lexical filter.
Guardrails
Indexes are described and approved before creation, never created silently. If the agent has no create/update/delete tools it recognises it is in read-only mode and hands back the complete index configuration JSON for the user to apply themselves, including through the Atlas UI — a genuinely useful behaviour when an agent is connected to production with read-only credentials.
It also covers text containment and substring matching, case-insensitive and multi-field search, and filtering across many fields with variable combinations. Part of MongoDB's official agent-skills collection, which also includes connection management, schema design, query optimisation, natural-language querying and Atlas Stream Processing.
SKILL.md
The instructions your agent loads, as published by MongoDB.
Related Skills
See all MongoDB Search & AI alternativesRedis' own guidance for FT.CREATE schema design, FT.SEARCH / FT.AGGREGATE / FT.HYBRID, HNSW vector similarity and RAG retrieval pipelines.
Skill: MongoDB Schema Design
by MongoDB
MongoDB's official data-modelling skill — embed-vs-reference decisions, relationship patterns and the anti-patterns that quietly wreck performance and cost.
Skill: Brave Search CLI (bx)
by Brave
Brave's official search skill: one CLI that searches, scrapes and extracts in a single call, returning token-budgeted web content instead of a list of links.