QuestionQ24
VerifiedContext Compression and CompactionA 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?
Community Discussion