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
- A. Respond with “In Stock” if the customer asks for a product.
- B. You will be given a customer call transcript where the customer asks about product availability. The outputs are either “In Stock” or “Out of Stock”. Format the output in JSON, for example: {“call_id”: “123”, “label”: “In Stock”}.
- C. Respond with “Out of Stock” if the customer asks for a product.
- D. You will be given a customer call transcript where the customer inquires about product availability. Respond with “In Stock” if the product is available or “Out of Stock” if not.
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.