Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

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)VectorHybridSemantic ranker
MatchesThe tokens you typedMeaning, through embeddingsBoth, mergedMeaning, re-read by a language model
Strong atPart numbers, names, error codesParaphrases, synonyms, other languagesMixed real-world questionsPicking the best passage
Weak atSynonyms (cab vs taxi)Exact identifiersNeeds vectors and a text indexCan’t find what the first pass missed
NeedsA searchable text fieldA vector field and an embedding modelBoth fields in one queryA semantic configuration and the ranker enabled
ScoreBM25 scoreSimilarity scoreRRF score (small numbers)Reranker score from 0 to 4
Works onThe whole indexThe whole index (k nearest)The whole indexTop 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

3D Information extraction: indexing, search, enrichment, agents and Content Understanding Ask the same question four ways.

🖱️ Drag to rotate · scroll or pinch to zoom

Loading the 3D scene…
</> Embed

Embed this simulation

Free for trainers, teachers and bloggers. Paste this into your page:

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.

Read this tour as text
  1. 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).
  2. 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.
  3. 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.
  4. 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.
  5. 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

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.