Just-in-time retrieval
Pasting the whole codebase or knowledge base into the prompt before every question is slow, expensive and still misses things. Good agents carry a notebook of pointers instead, file paths, links and record ids, and fetch the real thing only when a step needs it.
In this lesson you'll learn to
- Contrast loading context up front with fetching it just in time, and say what each costs.
- Give an agent lightweight pointers (paths, ids, links, search tools) and tools that turn them into content.
- Decide what to load up front (short, always-needed facts) and what to leave behind a pointer.
- Help agents explore well with good names, structure and progressive disclosure.
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.