LESSON 22.16 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Graph RAG
Watch a knowledge graph follow a chain of facts that vector search misses.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 22.16 · GRAPH RAG BAYTOP 3 HOLDS 1 OF 3 NEEDED FACTS
01
Stage 1 of 6 · Vector search
Vector search keeps the 3 text chunks closest to the question. They hold 1 of the 3 facts the answer needs.
Explain it simply
Each chunk on the left gets a score: how strongly it shares the question's words, with rare words counting more. The 3 highest scores, outlined, go to the model as its context. The chain on the right shows the facts the answer needs. Only one of them made the top 3, so the chain breaks.
Twelve chunks with scores. The top 3 are chunks 3, 9, 6. They hold 1 of the 3 facts the answer needs.
chunks, entities, facts in contexthopsscores, path, answermissing fact
Toy: 12 one-sentence chunks, TF-IDF word vectors, a pattern extractor
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The score is the cosine of the question and chunk word vectors.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 2 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.