Lesson 3.1

Hybrid keyword and vector search

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

Duration
7m
Level
Advanced
Students
6.3k 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

Resources

Sanity Context and content APIs

The official reference for the tools used in this lesson.