Better context
A chunk says "Revenue grew 3% over the previous quarter." Which company? Which quarter? Alone, nobody can tell, not the embedding model and not the answering model. Better context means retrieving small precise pieces but handing over enough around them, labelling each piece with where it came from, and making sure the newest version wins.
In this lesson you'll learn to
- Use parent-child (small-to-big) retrieval, matching on small chunks and sending their larger parent sections to the model.
- Explain contextual retrieval, where a model writes a short situating note for each chunk before indexing, and what it costs.
- Use metadata filters and boosts, such as product, version, language and access, to narrow retrieval.
- Keep answers current by filtering superseded content and preferring newer documents when versions conflict.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.