A context engineer is debugging a Databricks customer support agent that manages complex billing escalations.
The system prompt instructs the agent to:
- Strictly apply the company’s official refund policy.
- Treat entries from the “Billing-Policies” tool as authoritative.
- Treat FAQ snippets and prior chat history as non-binding guidance only.
In one multi-step trace, the engineer observes the following:
- Step 1: The agent calls the “Billing-Policies” tool and retrieves the official refund policy, which clearly states that chargebacks filed more than 90 days after purchase are not eligible for refunds.
- Step 2: The agent calls a “Customer-FAQ-Search” tool that returns a community-authored FAQ thread. A top-voted but outdated and unofficial answer incorrectly claims that chargebacks are fully refundable regardless of when they are filed, and the agent summarizes this in the running conversation as an established fact.
- Step 3: In a later turn, the customer describes a chargeback dispute from 18 months ago. The agent reasons from its own earlier summary, approves a full refund, and makes no reference to the official policy section excluding cases older than 90 days, even though that policy text remains in the context.
- Step 4: In subsequent similar cases, the agent repeatedly approves refunds for old chargebacks, citing its prior summary as justification each time.
Which context failure mode describes what is occurring in this trace?
A context engineer is creating a Databricks agent to triage incoming customer support tickets for a B2B software platform. Each ticket averages 200 tokens.
For each ticket, the agent must:
(1) assign a severity rating of P0/P1/P2/P3 based on whether the issue is fully blocking, degrades core functionality, affects a non-critical feature, or is informational—a judgment that requires reading the ticket body rather than matching keywords;
(2) route the ticket to one of eight engineering teams based on the technical area implied by the ticket;
(3) generate a brief, context-aware acknowledgment reply.
The pipeline must process up to 500 tickets per minute with an end-to-end latency budget of under 2 seconds per ticket. The token budget per invocation is 2,048 tokens, and the operations team has flagged that inference costs must remain minimal at this throughput.
Which reasoning mode should the context engineer configure for the agent?
Community Discussion
A context engineer is developing a Databricks agent for a retail inventory management system. The system prompt and tool descriptions consume 1,800 tokens of a 4,096-token context window, and the engineer reserves 1,000 tokens for the user turn and model response. The remaining tokens are used for few-shot examples, each costing approximately 250 tokens, so the engineer includes exactly five examples.
The agent uses three tools: inventory_lookup, reorder_check, and supplier_lead_time.
Six candidate examples are available:
- Example 1: A warehouse manager asks whether a depleted SKU needs reordering; the agent calls
inventory_lookup, confirms depletion, callsreorder_check, and returns a binary reorder decision. - Example 2: A procurement officer asks when a low-stock item can be replenished; the agent calls
reorder_check, callssupplier_lead_time, and returns a replenishment recommendation. - Example 3: A store associate asks for the current stock count of a single product; the agent calls
inventory_lookupand returns a scalar quantity. - Example 4: A store associate asks for the current stock count of a single product; the agent calls
inventory_lookupand returns a structured status object containing the quantity and a restocking flag. - Example 5: A store associate asks whether a forecasted shortfall requires immediate action; the agent calls
inventory_lookup, compares against minimums, callsreorder_check, and returns a binary reorder decision. - Example 6: A logistics coordinator asks how long a specific supplier takes to fulfill an order; the agent calls
supplier_lead_timeand returns a scalar lead-time value.
Which example should the engineer omit to preserve the token budget while maximizing behavioral coverage?
Community Discussion
A context engineer is debugging a Databricks agent that staffs an internal IT help desk. The agent is already connected to a retrieval pipeline over a live, continuously updated knowledge base, and relevant KB passages are retrieved and placed in its context on every request. Its system prompt has three parts: a 400-token persona preamble, a 600-token list of every supported software title, and a 200-token closing instruction block. None of these parts explains how to weigh retrieved passages against the model’s own training knowledge.
Observed behavior: the agent correctly identifies the user’s intent, and the correct KB passages are present in context. However, for version-specific questions, it answers from its training knowledge and recommends releases that the knowledge base marks as deprecated. The team will accept only a change that does not rewrite the full prompt and does not add or modify retrieval infrastructure.
Which system-prompt revision addresses the version-accuracy behavior?
Community Discussion
QuestionQ5
ConfirmedSystem Prompt and Instruction DesignThis question is being verified by contributors
Question is confirmed and being reviewed.
That's the end of the preview
It's free
Every verified question is free for all users.
No strings attached.
Community Discussion