Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 81
  • 21k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-search

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install vector-hybrid-search in Claude Code

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

A

No 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 →

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.

vector-hybrid-search Install

Add to stack

Loading.