PrepCity

Hybrid RAG: keywords, vectors and a graph

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 7 pages · about 5 min

Hybrid RAG: keywords, vectors and a graph

Keyword search finds exact codes, vector search finds the same idea in other words, a graph follows links between things. Each misses what the others find. Hybrid RAG runs them side by side and merges their lists by rank.

Words you’ll learn

  • Vector index
  • RAG
  • Embedding
  • BM25
  • Entity graph
  • Reciprocal rank fusion

Page by page