Nothing sent yet.window empty, budget 8,000 tokens
Chapter 3 of 7
Fetch it when you need it
More passages made answers worse, not better. Yet Larkspur can’t know in advance which passage a customer will need.
This chapter: Should the assistant get every document up front, or look things up when it needs them?
About this chapter
You will learn
- Stuffing: every document in every window, and what it costs
- Just in time: a search tool the model calls when the question needs it
- Why a small, focused window answers better
Words you’ll meet
- Stuffing
- Sending every document up front in every window, whatever the question.
- Just in time
- Loading a document only when the model asks for it, through a tool.
- Search tool
- A tool the model calls with a query; the host runs the search and returns the best passages.
Step 1 of 5
The simplest plan is : all 15 passages in every turn. Mara Quill asks about the refund window.
Send it with every document.