Mini module
Context and RAG
Why AI “forgets”, why more text is not always better, and how AI looks things up in your files. For beginners, with two hands-on demos.
Start readingWhat you will understand
- What the AI’s “desk” is and why it forgets
- Why a giant prompt can make answers worse
- How RAG looks things up, step by step
- Where it still goes wrong, and how to stay safe
Mini module
Next: How AI works
Curious what happens inside the model itself? The first mini module explains tokens, attention and how answers are built.
Sources used
- Liu et al. (2023): Lost in the Middle: How Language Models Use Long Contexts
- Chroma (2025): Context Rot
- Anthropic (2025): Effective context engineering for AI agents
- Lewis et al. (2020): Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- Magesh et al. / Stanford RegLab (2024): Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools
- Barnett et al. (2024): Seven Failure Points When Engineering a Retrieval Augmented Generation System
- Simon Willison (2025): The lethal trifecta for AI agents
- Claude Help Center: Retrieval augmented generation (RAG) for projects
- Claude docs: Context windows