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
- A. Add clearly labeled examples demonstrating correct extraction for both simple and complex patterns.
- B. Remove extraction examples from the prompt to test the agent without guidance.
- C. Increase the word count of the legal document examples included in the prompt.
- D. Replace detailed phrases with shorter, random content to improve performance.
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.