vector-hybrid-search

Plan and implement end-to-end vector and hybrid search in Elasticsearch.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/kevinsweet/elastic-ide-context --skill vector-hybrid-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vector-hybrid-search
Source: https://github.com/kevinsweet/elastic-ide-context/tree/main/.cursor/skills/recipes/vector-hybrid-search
Command: npx skills add https://github.com/kevinsweet/elastic-ide-context --skill vector-hybrid-search

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables engineers to design and implement end-to-end vector and hybrid search workflows in Elasticsearch, powering semantic queries, RAG, and vector storage for AI pipelines.

Core Features & Use Cases

  • Comprehensive decision tree from deployment options through production optimization and RAG extension.
  • Supports semantic search, hybrid BM25+vector retrieval, kNN indexing, and embeddings with LangChain/LlamaIndex integrations.
  • Practical guidance for planning, mapping, ingestion, monitoring, and iteration in real-world apps.

Quick Start

Configure a new vector search project by selecting deployment type, embedding strategy, and start building a hybrid search flow in Elasticsearch.

Frequently Asked Questions about vector-hybrid-search

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

FAQPage Schema
How do I build a hybrid search pipeline in Elasticsearch using BM25 and vector embeddings?

Build hybrid search in Elasticsearch by mapping kNN vector fields alongside standard BM25 text fields. You ingest embeddings and text together, then query both retrieval methods simultaneously to rank semantic and lexical matches for RAG pipelines.

What is the best way to integrate LangChain with Elasticsearch for semantic search?

Integrate LangChain with Elasticsearch by using its vector store wrappers to store and query embeddings. You configure your embedding model, ingest chunked documents into an index, and use the retriever to fetch semantic matches for your RAG application.

Does Elasticsearch support kNN indexing for production-grade RAG applications?

Elasticsearch supports kNN indexing for production-grade RAG applications. It provides native vector storage and retrieval capabilities, allowing you to scale semantic queries while offering deployment choices and monitoring tools for optimization.

How do I optimize chunking and embedding strategies for vector storage in Elasticsearch?

Optimize chunking and embedding strategies by evaluating your document structure and query needs. You select an embedding model, define chunk sizes that balance context and precision, and iteratively monitor retrieval accuracy to refine your vector storage configuration.

Can I use LlamaIndex to manage retrievers and ingestion for an Elasticsearch vector database?

You can use LlamaIndex to manage retrievers and ingestion for an Elasticsearch vector database. It integrates with your mapping and deployment setup, allowing you to orchestrate document chunking, embedding generation, and semantic retrieval workflows.

When should I use hybrid search instead of pure semantic vector search?

Use hybrid search instead of pure semantic vector search when queries rely on specific keywords, names, or exact phrases. Combining BM25 lexical retrieval with vector search ensures precise term matching alongside contextual semantic understanding.