Compare
Keyword vs Vector vs Hybrid vs Semantic Search in Azure AI Search
30-second answer
Use keyword search for exact words and codes, vector search for meaning, and hybrid to get both in one ranked list merged by Reciprocal Rank Fusion. Add the semantic ranker when the right passage is in the top 50 but not first, or when you want captions. For agents, a knowledge base with agentic retrieval can plan several of these queries for you.
Simulate it »Side by side
↔ Swipe the table to see every column.
| Keyword (BM25) | Vector | Hybrid | Semantic ranker | |
|---|---|---|---|---|
| Matches | The tokens you typed | Meaning, through embeddings | Both, merged | Meaning, re-read by a language model |
| Strong at | Part numbers, names, error codes | Paraphrases, synonyms, other languages | Mixed real-world questions | Picking the best passage |
| Weak at | Synonyms (cab vs taxi) | Exact identifiers | Needs vectors and a text index | Can’t find what the first pass missed |
| Needs | A searchable text field | A vector field and an embedding model | Both fields in one query | A semantic configuration and the ranker enabled |
| Score | BM25 score | Similarity score | RRF score (small numbers) | Reranker score from 0 to 4 |
| Works on | The whole index | The whole index (k nearest) | The whole index | Top 50 of the first stage |
Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.
Which one should I pick?
Keyword
Pick it when users search by exact codes or names
Vector
Pick it when questions are phrased freely
Hybrid
Pick it when you can’t predict which style users will use
Hybrid + semantic ranker
Pick it when answer quality matters more than a little extra latency and cost
Simulate it
🖱️ Drag to rotate · scroll or pinch to zoom
Keyword, vector, hybrid and semantic
Keyword search (BM25) matches words. Vector search compares embeddings, so it matches meaning. Hybrid runs both in parallel and merges them with Reciprocal Rank Fusion. The semantic ranker then re-reads the top 50 results with a language model and adds captions.
🤔 What happens if…
Read this tour as text
- Ingest and index content. An indexer reads files from a data source, runs a skillset (OCR, Text Split, an embedding model) and writes one search document per chunk into the index. Scanned images only become searchable when the OCR skill gets the images (imageAction: generateNormalizedImages).
- Keyword, vector, hybrid and semantic. Keyword search (BM25) matches words. Vector search compares embeddings, so it matches meaning. Hybrid runs both in parallel and merges them with Reciprocal Rank Fusion. The semantic ranker then re-reads the top 50 results with a language model and adds captions.
- Enrich with skills. A skillset is a chain of skills that adds fields to each document: built-in skills such as OCR, PII Detection and Key Phrase Extraction, a Web API custom skill for your own code, and the Content Understanding skill for layout-aware chunking. Outputs reach the index through output field mappings or index projections.
- Connect retrieval to an agent. A Foundry agent gets a knowledge base as a tool (an MCP endpoint). The project’s managed identity needs the Search Index Data Reader role. A retrieval reasoning effort of minimal, low or medium decides whether a model plans subqueries. Answers should come back with citations.
- Content Understanding analyzers. An analyzer turns a document into Markdown (layout, tables, figures) and into fields you define. Each field uses a method: extract (text on the page), classify (a fixed list) or generate (the model writes it). Fields come with a confidence score and a source location.
Questions people ask
Do I need an embedding model for vector search?
Yes. Both the documents and the query need vectors from the same model. A vectorizer on the index embeds the query text for you.
Does the semantic ranker replace vector search?
No. It reranks results that another query already found. Use it with keyword, vector or hybrid queries.
Learn each one properly
More comparisons
- Foundry Deployment Types: Global, Data Zone, Standard, Provisioned, Batch
- Foundry IQ Knowledge Base vs File Search vs Agent Memory
- Multi-Agent Orchestration Patterns: Sequential, Concurrent, Handoff, Group Chat, Magentic
- Prompt Engineering vs RAG vs Fine-Tuning
- Generate, Edit or Understand? Vision Features in Foundry
- Image Harm Controls vs Prompt Shields vs a Custom Visual Policy
- Azure Translator vs LLM Translation in Foundry
- Sentiment Analysis vs Model Tone Labels vs Content Safety
- Azure AI Search vs Content Understanding: Which Do You Need?