QuestionQ98

VerifiedImplement generative AI and agentic solutions

You have a Microsoft Foundry project containing an agent that generates summaries from retrieved policy documents.

You need to improve the completeness of the agent's responses. The solution must be implemented in the application code logic, and it must take effect before responses are returned to the caller.

What should you do?

Explanation

Microsoft Foundry provides built-in response-quality evaluators (including a completeness/answer-completeness metric) that can be called from application code to assess a generated response before it is returned to the user. By adding a retry-evaluation step in the app logic—evaluating the draft response for completeness and triggering a retry (regeneration or additional retrieval) when it fails the threshold—the application enforces completeness at runtime, prior to returning the final response. This differs from adjusting model sampling parameters (temperature, presence_penalty) or swapping to a smaller model, none of which are code-level pre-return quality gates and none of which reliably guarantee response completeness.

Learn more

Community Discussion

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