Compare eager memory injection with lazy tool-callable recall
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Eager injection prepends retrieved memories every turn, simple and low-latency but pays token cost always; lazy recall calls a search tool only when needed, token-cheap but adds a tool round-trip when used.
Imagine an assistant who either keeps your notes spread on the desk in front of them all the time, or keeps them filed away and walks to the cabinet only when they need to look something up. The first way means they never miss a relevant note, but the desk is crowded and you pay for the space. The second way keeps the desk clean and cheap, but every cabinet trip is a small delay. Neither is better in general. If you ask about your notes constantly, leaving them on the desk is the right call. If you mostly do other work and only sometimes need them, the cabinet wins.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Describe eager injection (retrieve at turn start, prepend to context) and its fixed token cost. Describe lazy recall (search tool invoked by model judgment) and its on-demand round-trip cost. Frame the choice as a workload-shape question driven by how often memory is actually needed. End with the hybrid pattern that production systems converge on: a small eager persistent block plus lazy episodic and semantic recall.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking the eager pattern by default because it is simpler, then watching the prompt budget bloat with memories the model never used on most turns.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.