Retrieval-Augmented Generation from Scratch
LESSON 3.1

Hybrid keyword and vector search

Learn key techniques and workflows in Retrieval-Augmented Generation from Scratch.

6m
advanced
6,300 students

Overview

Vector search misses exact identifiers; keyword search misses paraphrase. Running both and fusing the rankings covers each one’s blind spot.

In this lesson you will:

  • Combine lexical and semantic result sets
  • Fuse rankings rather than concatenating them
  • Fall back to keyword search when embeddings are unavailable

Pro Tip

If embeddings are switched off in your environment, wildcarded keyword matching is the fallback that still works.

Resources