QuestionQ38

VerifiedImplement generative AI and agentic solutions

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

You need to improve the completeness of the responses. The solution must be implemented in the application code's logic before the responses are returned.

What should you do?

Explanation

A completeness check-and-retry step implemented in the application's own request/response pipeline — evaluating the draft response for required content and re-invoking generation before the response is handed back to the caller — enforces completeness at the code layer without changing the model or the retrieval design. Decreasing max_tokens or deploying a smaller model both reduce the model's ability to produce complete output, and switching to RAG changes how content is retrieved rather than adding an in-code completeness check prior to returning the response.

Learn more

Community Discussion

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