QuestionQ24

VerifiedContext Compression and Compaction

A context engineer is evaluating a Databricks agent built for a healthcare scheduling platform. The agent’s system prompt is 5,100 tokens and includes detailed instructions for three rarely invoked capabilities, each triggered in fewer than 2% of sessions:

  • Insurance eligibility verification, which requires calls to a third-party payer API with variable response times
  • Appointment rescheduling fee calculations, with complex branching logic across dozens of plan types and provider tiers
  • Medical record release consent workflows, with multi-step conditional logic and regulatory references

The agent’s primary function is answering patient appointment availability queries, which account for 95% of traffic. The team must reduce per-session context cost without degrading task success rate on the dominant use case, and the solution must stay within the existing Databricks agent framework without introducing additional hosted components to manage.

Which loading strategy should the context engineer use for the three rarely invoked capabilities?

Explanation

Agent Skills can keep specialized instructions out of the baseline prompt and load them only when relevant, reducing context for the 95% of traffic devoted to appointment availability. Local skill files do not require an additional hosted component. The implementation should support skill discovery and loading, and the team should evaluate both intent matching and task success after the change. (docs.databricks.com)

Learn more

Community Discussion

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