UiPath Automation Architecture Associate v1 — Question 5

A developer is implementing a few-shot structured prompt for an email classification task. The prompt includes examples of email subjects labeled with their respective classifications, such as “Spam” or “Work”. What is the most important aspect to consider when selecting examples for the prompt?

Answer options

Correct answer: C

Explanation

The correct answer is C because selecting diverse, relevant, and representative examples ensures that the model can generalize well to the actual data it will encounter. Option A is incorrect as unrelated examples do not provide useful context, B is wrong since the number of examples should be based on the task's needs rather than a fixed quantity, and D is misguided since incorrect labels can confuse the model instead of aiding in its training.