UiPath Automation Architecture Associate v1 — Question 12

A solution architect is tasked with building a structured prompt for an agent that extracts key phrases from legal documents. Upon testing, they find that the agent frequently misses extraction patterns. How can the architect enhance the effectiveness of the few-shot prompt structure?

Answer options

Correct answer: A

Explanation

The correct answer is A, as providing clearly labeled examples helps the agent learn the expected extraction patterns more effectively. Option B is counterproductive since removing guidance would likely decrease the agent's performance. Option C does not address the quality of examples, and simply increasing word count may not assist in improving pattern recognition. Option D could confuse the agent by introducing irrelevant content, undermining its ability to extract key phrases.