Vestal says agents still need retrieval for fresh, proprietary or changing information. Since models can confidently use bad context, the workshop focuses on supplying relevant documents. It covers semantic search, BM25 keyword search, and ways to combine them.
Vector Isn't Enough: Hybrid Search & Retrieval
Speakers
Jeff Vestal, AI architect, and James Williams, solutions architect, at Elastic lead an AI Engineer workshop on hybrid search, retrieval and reranking.
Vestal explains that semantic search matches ideas, so differently worded questions can return similar results. It can struggle with exact terms such as product IDs, where BM25 and keyword filters help. Lexical search is often faster because it does not require model inference.
Vestal explains that BM25 and vector scores use different scales, making them difficult to combine directly. Reciprocal rank fusion, or RRF, combines result order and is a useful starting point; linear combination normalizes scores and allows weight tuning. Williams recommends testing against relevance judgments and adding complexity only when it improves results enough to justify added latency.
Williams and Vestal show how retrieved documents ground agent answers and allow citations. Elastic Agent Builder supports programmable agents, tools and skills, while ES|QL can query documents and help agents discover relevant indices. Williams notes that Agent Builder components are accessible through APIs for use in custom applications.
Williams describes reranking as a second stage that reorders a smaller set of candidates, which adds inference latency. It can help when precise ordering matters, especially when candidate documents are very similar. Pointwise rerankers score documents independently; listwise reranking evaluates candidates together and may better distinguish similar answers.
Takeaways
- Use semantic search for meaning and BM25 for exact terms such as product IDs; test both on your query mix.
- Start with RRF as a hybrid search baseline, then tune normalized linear scores against judged results.
- Filter candidates when metadata such as date, location or category can narrow the search.
- Add reranking when first-stage results are not precise enough and the latency budget allows it.
- Ground agent answers in retrieved documents and preserve citations so users can inspect the evidence.
Mentioned in this talk
Search inside this talk
What was claimed 10
- acquired
“We've got Jina models from an acquisition we made.”
YouTube Verified2 sources· Talk, Web· archived
- works atJeff Vestal works at
Elastic
Principal Customer Enterprise Architect“I work at Elastic as an AI architect.”
YouTube Verified2 sources· Talk, Web· archived
- role atJames Williams is solutions architect focused on search at
Elastic
“I'm a solutions architect focused on search.”
YouTube Unverified1 source· Talk
- feature
Elastic Inference Service: Powers models used in the workshop, including embedding generation within Elasticsearch Serverless.
“You'll see embedding generation happen within Elasticsearch Serverless.”
YouTube Unverified1 source· Talk
- featuresemantic_text: Chunks text into default 250-token chunks with one sentence of overlap for retrieval.
“We'll chunk it into 250-token chunks with one sentence of overlap.”
YouTube Unverified1 source· Talk
- uses
Elasticsearch uses HNSW
default vector-search algorithm“By default we use HNSW.”
YouTube Unverified1 source· Talk
- feature
Elastic Agent Builder: Provides agents, tools, and skills, and supports connecting to LLMs and data in Elastic.
“Agent Builder, Elastic's agentic platform, which can run agents, tools, and skills.”
YouTube Unverified1 source· Talk
- feature
Elasticsearch: Supports ES|QL as a query language for querying documents.
“You can use ESQL tools to query documents in Elasticsearch.”
YouTube Unverified1 source· Talk











