A company uses a pre-trained LLM for a recommendation chatbot and needs the model's replies to be concise and in a specific language. Which approach will best steer the LLM to meet these output requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Refine and constrain the prompt.
Why this is the answer
Refining and constraining the prompt is the most effective way to guide an LLM's output for conciseness and specific language. By providing clear instructions within the prompt, such as "Respond concisely in Spanish," the model is directly steered to generate responses that meet these criteria. Selecting an LLM of a different size primarily impacts computational resources and general capability, not specific output style. Increasing the temperature parameter makes the output more random and creative, which is counterproductive to conciseness and specific language. Increasing the Top-K sampling value broadens the vocabulary choices, potentially making the output less focused rather than more concise or language-specific.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed