QuestionQ4

VerifiedSystem Prompt and Instruction Design

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?

Explanation

An explicit grounding instruction can direct the agent to prioritize retrieved KB passages over conflicting training knowledge. This targets the observed use of outdated version information while requiring only a small prompt edit and no retrieval changes. The revised behavior should be evaluated because prompt instructions do not guarantee compliance. (learn.microsoft.com)

Learn more

Community Discussion

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