Skill 5.1.3

Implement and optimize hybrid search approaches combining semantic and keyword-based retrieval

Key Concepts

In Azure AI Search, a hybrid query sends a full-text query, scored with BM25, and one or more vector queries in the same request. The two result lists are merged with Reciprocal Rank Fusion (RRF), which scores each document by its rank in each list, so a document that ranks well in both rises to the top. Hybrid search finds exact identifiers, product codes and rare names that vector search misses, and paraphrased questions that keyword search misses.

The semantic ranker then reranks the top 50 merged results with a cross-encoder model that reads the query and each passage together, and returns a reranker score and optional captions. Tuning options include the number of vector neighbours (k), vector weights, filters, the fields searched, and a minimum reranker score threshold.