Certified Generative AI Engineer Associate Exam QuestionsBrowse all questions from this exam

Certified Generative AI Engineer Associate Exam - Question 45


A Generative AI Engineer is using an LLM to classify species of edible mushrooms based on text descriptions of certain features. The model is returning accurate responses in testing and the Generative AI Engineer is confident they have the correct list of possible labels, but the output frequently contains additional reasoning in the answer when the Generative AI Engineer only wants to return the label with no additional text.

Which action should they take to elicit the desired behavior from this LLM?

Show Answer
Correct Answer:

Discussion

1 comment
Sign in to comment
Hifly_AAOption: A
May 4, 2025

A. Use few-shot prompting to instruct the model on the expected output format. By providing a small number of examples that show exactly how you want the model to respond—i.e. input descriptions paired with just the mushroom label and no extra reasoning—you teach the LLM the desired output pattern. This tends to be more reliable than a single zero-shot instruction or a generic “be succinct” system message, because the model sees concrete input-output pairs demonstrating the exact format you need.