What is retrieval?
Finding passages relevant to a question by comparing embedding vectors, and adding them to the context so that the model can read the answer instead of recalling it. Also called RAG.
Where it is taught
Retrieval. A model's knowledge is frozen on the day its training ends. Retrieval fetches relevant text at the moment you ask and places it in the context, like an open-book exam.
What the lesson leaves you with
- Retrieval finds relevant passages by comparing embedding vectors, then adds them to the context.
- The model's weights do not change. Only what it can see changes.
- An answer is only as good as the passages that were found.
Questions
- What is retrieval?
- Finding passages relevant to a question by comparing embedding vectors, and adding them to the context so that the model can read the answer instead of recalling it. Also called RAG.
- Where is retrieval used in AI?
- A model's knowledge is frozen on the day its training ends. Retrieval fetches relevant text at the moment you ask and places it in the context, like an open-book exam.
- What is the key idea to remember about retrieval?
- Retrieval finds relevant passages by comparing embedding vectors, then adds them to the context.
- Where can I learn retrieval step by step?
- In the lesson “Retrieval” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.