On this page
Your RAG pipeline can match the meaning and still pick the wrong error code.
On 16 November 2026, AWS added hybrid search to Amazon S3 Vectors. One QueryVectors call now runs vector search and BM25 full-text search together, fuses the two rankings with Reciprocal Rank Fusion (RRF), and returns a single list. That is what S3 Vectors hybrid search is built for: RAG queries where the meaning is close, but one exact term has to be right.
Why vector search misses error codes and SKUs
Vector search captures meaning. That is usually what you want in a knowledge base. It can still return a less relevant passage when the query hinges on a specific string. The hybrid search user guide lists the cases: product codes, SKUs, error codes, acronyms, legal citations, drug names, file names and proper nouns.
The short film on this page is an illustration of that gap, not a result from a real index. The query is “controller error code E1234”, which is also the example string in the querying guide. In the film, a vector-only search ranks a runbook for E1243 first, because the passages look alike. The runbook file names, the near-miss labels and the agent answer are made up to show the shape of the failure.
Full-text search ranks with BM25, or Best Matching 25. It scores a record by how often the query terms appear in the searched field, and it gives more weight to rarer terms. That is the better signal when you are looking for a specific code. Hybrid search keeps both signals in one ranked list.
How S3 Vectors hybrid search works
Hybrid search runs against a single index. The searchable text lives alongside the vectors, and you keep using the same S3 Vectors APIs.
The user guide sets this out in three steps:
- You choose which metadata fields are full-text searchable, on a new or existing index. S3 Vectors indexes those fields with BM25. By default it uses a language-agnostic text analyzer, and you can optionally pick a language-specific one.
- You keep writing with PutVectors, and you put the searchable text in that metadata field. AWS also says you can enable full-text search on existing data in place.
- You send the query vector and the query text in the same QueryVectors call. S3 Vectors runs both searches, fuses the rankings with RRF, and returns your top K.
QueryVectors accepts a queryVector, queryTexts, or both. Each queryTexts entry has the text to search for and the metadata key to search against. You can pass up to 10 fields in one request, which is the limit in the API reference. S3 Vectors then runs a BM25 search for each field, sums those scores, and fuses that ranking with the vector ranking.
If you set returnScores, a hybrid query can return the fused RRF score and the BM25 score.
ENHANCED indexes, and when to fuse the results yourself
Full-text and hybrid search work on ENHANCED indexes only, not on CLASSIC indexes. The user guide and the QueryVectors API reference both state this. If the index is still CLASSIC, you convert it with UpdateIndexMode before you turn on full-text search.
You also do not have to use the built-in fusion. The What’s New post and the querying guide both say you can run a full-text-only query and a vector-only query as separate QueryVectors calls, then apply your own ranking logic in the application. That is the path I would take if I already have a re-ranker or a score-normalization step I trust.
The default path is now one index and one call. You only write merge code if you choose to run the two searches yourself.
How I would evaluate the switch
This next part is my view, not an AWS claim.
I would treat hybrid search as a retriever change, and measure it like any other. It sits next to other retrieval choices, such as treating retrieval as a routing problem. Hybrid search does not replace that decision. It changes what a single S3 Vectors index can return when the query set mixes conceptual questions with exact-term lookups.
That is an AI and LLMs in production problem, because a near-miss passage is how a RAG answer goes wrong. A model given a near-miss runbook will still sound confident about the wrong code.
AWS does not publish relevance metrics for hybrid search in this release. The querying guide says hybrid queries can provide recall gains over full-text alone and over vector alone, because they keep both the exact-term signal and the meaning, and that this helps most when the query set is mixed. It also says actual performance varies, and recommends testing with your own representative data and queries.
The rule I use
Split the RAG eval set into exact-term queries and conceptual ones, and measure recall on each before you switch.
In practice that means a few questions first:
- Which queries in the eval set hinge on one exact string, such as an error code or a SKU?
- Is the index in ENHANCED mode, and are the right metadata fields configured for full-text search?
- Am I sending both the query vector and the query text in one QueryVectors call, or do I need my own fusion?
- After a hybrid run, did exact-term recall go up, and did conceptual recall stay put?
The product details above come from the AWS What’s New post on 16 November 2026, the hybrid search user guide, the guide to querying with full-text and vector search, and the QueryVectors API reference.
If you are deciding how to retrieve exact terms in a RAG pipeline on AWS, get in touch.



