QuestionQ38

VerifiedContext Compression and Compaction

A context engineer is tuning a compaction prompt for a Databricks agent that summarizes customer support ticket histories before sending them to a downstream LLM. The trace being compacted spans 40 turns, and the compacted output must fit within the downstream LLM’s context window. During initial evaluation against a benchmark of escalated support cases, the engineer observes that the compaction output consistently omits several prior resolutions and key escalation events, even though it fits well within the downstream LLM’s context window.

What tuning step should the engineer take next?

Explanation

The immediate problem is insufficient coverage: prior resolutions and escalation events are being omitted even though the output is well within the context window. Broader retention rules target those omissions, while the available space permits a longer summary. Verbosity can be tightened later and evaluated against the benchmark, while ensuring the final output still fits the downstream context window. Databricks identifies coverage and conciseness as separate dimensions for evaluating summaries. (answers.databricks.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!