StudyVisuallyStart studying
Part 05 · Embeddings + RAG · Card 12 of 14

Hybrid search

Combine keyword search with vector search.

Last updated

Analogy

Vector search understands vibes but fumbles exact codes. Keyword search is the friend who remembers the error was ERR_502.

In an agent

Add it when users search for exact names, IDs or error codes.

Practice

Flashcards

  • What is hybrid search?Keyword search and vector search combined, so exact names like ERR_502 aren't missed.

Questions people ask

What is hybrid search in RAG?

Hybrid search combines keyword search with vector search and merges the results. Vector search understands meaning but can fumble exact strings like error codes, product names or IDs. Keyword search catches those exactly. Together they find both the right topic and the exact term.

When do I need hybrid search?

When users search for exact things: error codes like ERR_502, function names, ticket IDs, product SKUs or people's names. Pure vector search can rank the exact match below pages that are merely similar. If your evals show those queries failing, add keyword search alongside vectors.