Databricks Certified Generative AI Engineer Associate — Question 3

A Generative Al Engineer interfaces with an LLM with prompt/response behavior that has been trained on customer calls inquiring about product availability. The LLM is designed to output “In Stock” if the product is available or only the term “Out of Stock” if not.
Which prompt will work to allow the engineer to respond to call classification labels correctly?

Answer options

Correct answer: D

Explanation

The correct answer is D because it directly instructs the engineer on how to respond based on the availability of the product, aligning with the model's design. Options A and C only provide partial responses and do not encompass both possible outcomes, while option B focuses on formatting rather than response content.