LESSON 208 / 215·2 min readIntermediate

RAG revision

ReferenceReference guide
01 Understand02 Recall03 Prepare

Words made simple

A few useful meanings before you read the explanation.

RAG
Find relevant information first, then give it to a model to help answer the question. The answer is only as reliable as the information and checks used.
Embedding
A list of numbers that represents the meaning of some content. Similar meanings can produce nearby lists of numbers.
Retrieval
Finding and fetching information that is useful for the current question.
More words from this lesson
Grounding
Connecting an answer to supplied evidence, such as a policy document or a verified database result.
Agent
An application that uses a model to choose its next action within defined limits. It can use tools and continue through several steps.
Latency
How long a request takes to return a result. Lower latency usually means a shorter wait for the user.
Chunking
Dividing a long document into smaller pieces so relevant parts can be found and sent to the model.
Metadata
Extra information describing a record, such as its owner, date, policy version or document type.

Ingestion: approved source → secure parse/OCR → coherent chunks + metadata → embeddings → complete published index.

Answer: identity → eligible retrieval → rerank/context budget → grounded model → validated citations → answer/abstain.

Advanced patternPurposeMain risk
RewriteResolve conversational/search wordingChanging intent or identifiers
Multi-querySearch alternative phrasingsFan-out cost and duplication
DecompositionSplit compound questionsLosing how subanswers connect
Parent-childSearch precise pieces, provide full relevant sectionOversized context or mismatched permissions
Multi-hopFollow dependent evidenceCompounding errors and latency
Agentic RAGLet bounded agent choose retrieval stepsLoops and excess autonomy
Corrective/self-reflectiveCheck evidence/answer and apply bounded correctionUncalibrated self-approval
Graph RAGRetrieve through entity relationshipsIncorrect extracted links and maintenance cost
CompressionKeep only useful evidenceLost exceptions, numbers, or provenance

RAG versus fine-tuning: retrieval supplies current external knowledge; training changes learned behavior. RAG versus long context: search a large changing corpus versus supply a known bounded document set. RAG versus search: generation adds explanation; returning sources can be sufficient.

PAUSE & RECALL

Can you explain it without the notes?

RAG revision

Use your own words. Explain an example and one limitation before checking the explanation.

Check your explanation

Ingestion: approved source → secure parse/OCR → coherent chunks + metadata → embeddings → complete published index.

CONNECT IT TO YOUR INTERVIEW

Turn this concept into a clear answer.

Practice this concept
YOUR NEXT STEP

Keep connecting the ideas.

Next lesson: Agents and frameworks

Adapted from 13_AI.MD · “RAG revision”. Examples are study fragments; framework behavior can depend on your version.