Key words and examples
Every key word in this course in everyday language, and every real-world example with its picture. Use it to look things up or to revise.
🔑 Key words (25)
25 of 25 words
- Chunk
- A small piece of a long documentFrom: Chunking Documents the Right Way
- Citation
- Showing the source of an answerFrom: Chunking Documents the Right Way
- Context window
- How much text the model can read at onceFrom: Why Models Need Your Data
- Cosine similarity
- A score of how much two vectors point the same wayFrom: Embeddings: Turning Meaning into Numbers
- Embedding
- A text turned into a list of numbers that stands for its meaningFrom: Embeddings: Turning Meaning into Numbers
- Exponential backoff
- Waiting a bit longer after each failed tryFrom: Deploying: Latency, Cost and Monitoring
- Faithfulness
- Every claim is supported by the retrieved chunksFrom: Evaluating RAG Quality
- Fine-tuning
- Training the model further on your examples to change its behaviourFrom: Why Models Need Your Data
- Golden set
- Questions with known good answers and the source of eachFrom: Evaluating RAG Quality
- Hybrid search
- Keyword search and vector search used togetherFrom: Retrieve, Then Generate with Citations
- Latency
- How long a request takes to get its replyFrom: Deploying: Latency, Cost and Monitoring
- LLM-as-judge
- A second model that grades answers with a strict rubricFrom: Evaluating RAG Quality
- LoRA
- Trains a small set of extra weights instead of the whole modelFrom: When and How to Fine-Tune
- Metadata
- Labels saying where a chunk came from, like file and pageFrom: Chunking Documents the Right Way
- Overlap
- Text repeated at the edges of neighbouring chunksFrom: Chunking Documents the Right Way
- Prompt caching
- Storing a long repeated start of the prompt so repeat calls cost lessFrom: Deploying: Latency, Cost and Monitoring
- Prompting
- Pasting the facts into the promptFrom: Why Models Need Your Data
- RAG
- Find the most relevant pieces of your data, then give them to the modelFrom: Why Models Need Your Data
- Recall@k
- Share of questions whose correct source is in the top k resultsFrom: Evaluating RAG Quality
- Reranking
- Fetch many chunks, then a second model picks the best fewFrom: Retrieve, Then Generate with Citations
- Routing
- Sending easy steps to a small model and hard ones to a bigger oneFrom: Deploying: Latency, Cost and Monitoring
- Test set
- Examples held back that the model never trains onFrom: When and How to Fine-Tune
- Top-k
- The k best-matching chunks for a questionFrom: Project: Ship a Cited Q&A Service
- Vector
- The list of numbers, like coordinates on a mapFrom: Embeddings: Turning Meaning into Numbers
- Vector database
- A store built for fast similarity searchFrom: Retrieve, Then Generate with Citations
🏠 Real-world examples (8)
Lesson 1
A model is trained once, up to a certain date. It has never seen your documents. You must give it the right information.
📌 Facts go in through retrieval; behaviour comes from training.
Lesson 2
Embeddings: Turning Meaning into Numbers
An embedding turns text into a list of numbers. Texts with similar meanings get numbers that sit close together.
📌 Embeddings let computers search by meaning, not only by matching words.
Lesson 3
Chunking Documents the Right Way
A long document is split into small pieces called chunks. Each chunk should hold one clear idea and a label for its source.
📌 One clear idea per chunk, plus a label saying where it came from.
Lesson 4
Retrieve, Then Generate with Citations
A RAG pipeline first fetches the chunks that best match the question. Then the model answers only from them and cites each source.
📌 Retrieve the evidence first, then make the model show its sources.
Lesson 5
RAG can fail in two places. Retrieval may miss the right chunk, or the model may use the chunk badly. Measure both separately.
📌 Test retrieval and answers separately. Fix the ingredients before the cooking.
Lesson 6
Fine-tuning trains an existing model a little more on your examples. It mainly changes how the model behaves, not which facts it knows.
📌 Fine-tune for behaviour, retrieve for facts, and compare against a strong prompt.
Lesson 7
Deploying: Latency, Cost and Monitoring
A demo on your laptop is not a product. With real users you must manage speed, cost, failures and logs.
📌 Ship with timers, budgets and logs. You cannot fix what you cannot see.
Lesson 8
Project: Ship a Cited Q&A Service
You build a question-answering service over documents you are allowed to use. It must cite sources and be measured, not only shown working.
📌 Build it, cite it, measure it, then harden it with retries and logs.