Retrieval returns a document that is accurate - for last year’s pricing.
The agent answers from it confidently.
- AIncrease top-k so the newer document is also retrieved
- BSwitch to a better embedding model trained on newer data, so the retriever naturally prefers recent documents over last year’s pricing pages whenever both match
- CAdd «be accurate and up to date» to the prompt
- DCarry the document’s date into retrieval and into the answer - rank by recency and make the reply cite when it is from
Answer: D
Carry the document’s date into retrieval and into the answer - rank by recency and make the reply cite when it is from
Why
Similarity has no opinion about time. Unless the date is part of ranking and part of the answer, a perfectly relevant old document will keep winning - a larger top-k just puts the truth next to the falsehood and lets the model choose.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path