Tinker RAG

by Samy (Kondasamy Jayaraman)

DOCSCHAPTER 3RETRIEVERCHAPTER 3...

Click a block to tune it. Drag the board to turn it.

Nothing reaches the model: there is no wire path from Docs through the Retriever to the LLM.

Loading the retrieval index…

Chapter 3 of 7

What is RAG?

Pasting everything failed: too big, too stale, no permissions. So the team will hand the model only the few passages each question needs.

This chapter: What is the smallest working RAG system, and what does each part do?

About this chapter

You will learn

  • The three steps in the name: Retrieve, Augment, Generate
  • How a retriever scores every passage against the question
  • Why a grounded answer can cite where it came from

Words you’ll meet

Retriever
Finds the passages that best match the question and hands the top few to the model.
Similarity score
A number for how close in meaning a passage is to the question. Higher is closer.
Grounded answer
An answer built from the passages it was given, so it can cite them.
LLM
Large language model. It writes text by predicting what comes next, using what it learned in training and what is in its prompt.

Step 1 of 7

Meet the assistant: for now just an , with no documents wired in. A support lead asks it about refunds.