
Answer-first summary for fast verification
Answer: 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.
Option D is the correct answer because it clearly specifies both the input (customer call transcript about product availability) and the conditional output logic (respond with 'In Stock' if available, 'Out of Stock' if not), aligning with the LLM's design to output only these two terms. Option B, while providing a structured JSON format, introduces an unnecessary complexity (call_id field) not required by the question and doesn't explicitly state the conditional logic for when to use each label. Options A and C are incomplete as they only specify one output scenario without the conditional logic. The community discussion strongly favors D (92% consensus) with upvoted comments noting that D provides the complete instruction set while B has format mismatches and lacks explicit conditional guidance.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A Generative AI Engineer is working with an LLM trained on customer calls about product availability. The LLM is designed to output "In Stock" if the product is available, or only the term "Out of Stock" if it is not. Which prompt will correctly enable the engineer to get the proper call classification labels?
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.
No comments yet.