vector-hybrid-search
Skill by elastic
Guides building vector, hybrid, and kNN search with Elasticsearch, covering semantic_text, dense_vector, RRF and reranking. It is for developers adding semantic search or using Elasticsearch as a vector store.
Install vector-hybrid-search
Built from the published package, never by AI.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.claude/skills && cp -r /tmp/kibana/src/platform/packages/shared/kbn-search-agent/.elasticsearch-agent/skills/recipes/vector-hybrid-search ~/.claude/skills/vector-hybrid-searchRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kibana/src/platform/packages/shared/kbn-search-agent/.elasticsearch-agent/skills/recipes/vector-hybrid-search ~/.gemini/antigravity-cli/skills/vector-hybrid-searchAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install vector-hybrid-search in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Vector & Hybrid Search Guide is a skill that covers the full lifecycle of vector or hybrid search with Elasticsearch, including planning, data modeling, search implementation and optimization. It explains how to choose between semantic_text and dense_vector fields, pure kNN search, and hybrid search that combines BM25 and kNN through Reciprocal Rank Fusion (RRF). It also covers optional reranking with text_similarity_reranker and quantization options for reducing vector memory. All API examples use SENSE syntax for Kibana Dev Tools.
The skill is meant for developers who want semantic search, hybrid search, kNN, embeddings, or Elasticsearch as a vector store. It directs the assistant to return to the Elasticsearch onboarding playbook after applying this guidance, since that playbook controls sequencing. Embedding options named in the source include built-in models through Elastic Inference Service (EIS), third-party models, and self-hosted models on ML nodes.
Written from the project's SKILL.md and checked against it.
What it can do
- Embedding strategy choiceHelps pick between built-in EIS, third-party, or self-hosted embedding models.
- semantic_text mappingSets up semantic_text fields with auto chunking and embedding on Elasticsearch 8.15 or later.
- dense_vector mappingConfigures dense_vector fields with dims and similarity for bring-your-own vectors.
- Semantic searchRuns semantic queries against a semantic_text field.
- Pure kNN searchRuns kNN queries against a dense_vector field.
- Hybrid search with RRFCombines BM25 and kNN retrievers using reciprocal rank fusion.
- RerankingAdds text_similarity_reranker when relevance is not good enough after tuning.
- Quantization guidanceCompares hnsw, int8_hnsw, int4_hnsw and bbq_hnsw for memory and recall trade-offs.
- Shard sizing guidanceGives a target of 10-50 GB per shard and a maximum of 200M docs per shard.
- Relevance troubleshootingSuggests tuning RRF window_size and rank_constant and running _rank_eval.
What you need
- Elasticsearch 8.15 or later for semantic_text
- Elastic Cloud (Serverless or ECH) for the default built-in EIS path
- Kibana Dev Tools
Try asking
- Help me set up hybrid search with RRF on my Elasticsearch index
- Create a semantic_text mapping for my product descriptions index
- Show me how to add quantization to reduce vector memory usage
Good to know
- semantic_text requires Elasticsearch 8.15 or later; older versions should use dense_vector.
- Model IDs change regularly, so check EIS docs before generating endpoint config.
- Shard guidance is 10-50 GB per shard with a maximum of 200M docs per shard.
- Reranking is optional and the source recommends starting without it.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/platform/packages/shared/kbn-search-agent/.elasticsearch-agent/skills/recipes/vector-hybrid-search/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to vector-hybrid-search
All alternatives →Box lets an AI assistant search, read, upload, download, move, rename, delete, restore and share Box content. It also manages comments and metadata. It suits people who work with files stored in Box.
Guides AI assistants in using n8n-mcp MCP tools to search nodes, validate configs, browse templates and manage n8n workflows. Aimed at people building n8n workflows through MCP.
Manages citations across the research and writing process. It covers searching Google Scholar and PubMed, converting DOIs, PMIDs and arXiv IDs to BibTeX, and validating bibliographies. It is for researchers building bibliographies for manuscripts or theses.
Exa Search is a skill that guides an AI assistant to use the Exa MCP server for neural search. It covers web pages, code, companies, and people, and is for users who need current information or research during development tasks.
Runs recent community and social trend research over the last 30 days. It suits teams who need to know what people are saying now about a topic or launch.
seo-flow adds the FLOW SEO framework to Claude SEO. It surfaces stage-specific AI prompts from the FLOW knowledge base across the Find, Leverage, Optimize and Win stages. It is for SEO practitioners who want evidence-led prompts.
Compare with box, n8n-mcp-tools-expert or citation-management
vector-hybrid-search: common questions
Which field type should I use for semantic search?
The source recommends semantic_text for 8.15 or later with no existing vectors. Use dense_vector when bringing your own vectors, needing dims or similarity control, or running before 8.15.
How do I weight keyword results against semantic results?
Adjust the RRF window_size. The source says a higher value favors semantic results and a lower value favors BM25.
How do I reduce vector memory usage in Elasticsearch?
The source suggests adding int8_hnsw quantization to the dense_vector mapping and reindexing, which it lists as about 4x memory reduction with minimal recall impact.
How do I install vector-hybrid-search?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is vector-hybrid-search free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is vector-hybrid-search safe to use?
It scores 81 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to vector-hybrid-search?
Similar skills: box, n8n-mcp-tools-expert, citation-management, exa-search.
