QuestionQ35
VerifiedContext Compression and CompactionA context engineer is building a Databricks research agent that produces analyst reports where every claim must cite a verifiable source: a reviewer must be able to trace each citation back to its exact original source text. At each step, the agent calls a retrieval tool that returns several short source snippets, writes a reasoning trace explaining how those snippets support its conclusions, and appends both the snippets and the reasoning to a running context reused by later steps. As the run grows, the accumulated context pushes per-step token cost above the team’s budget, so the context must be compacted to reduce token spend.
Which compaction strategy meets both the citation requirement and the need to reduce tokens?
Community Discussion