All lessons in AI Engineering: From Foundation Models to Evaluated Applications

Price Context, Memory, and Reusable Skills

Measure compression recovery, cache eligibility, and the break-even point of reusable workflows.

90 minutes · Members lesson · preview

What you will learn

  • Distinguish response, retrieval, prefix, and workflow reuse by their validity conditions.
  • Calculate reuse savings after setup, misses, invalidation, and recovery costs.
  • Compare context strategies at a fixed task-quality requirement.

Your cost ledger shows repeated work: the agent rereads a policy, restates a plan, or sends the same instructions many times. The next experiment is to remove repetition while keeping the evidence needed to finish the task. Choose one reuse object and define exactly when it is valid.

Budget 90 minutes: 20 for the model and calculations, 45 to implement one policy, and 25 for invalidation tests and reporting. Continue using the previous lesson's workload and ledger. Treat the examples as synthetic; a cache hit does not prove the cached result was correct.

Choose another lesson