QuestionQ25

VerifiedFundamentals of GenAI

A company is using a pre-trained large language model (LLM) to build a chatbot for product recommendations. The company needs the LLM outputs to be short and written in a specific language.

Which solution will align the LLM response quality with the company's expectations?

Explanation

Adjusting the prompt allows direct control over LLM output characteristics including length and language. By crafting instructions like 'Respond in [language] with 2-3 sentences', the model aligns with requirements. Model size, temperature, and top-K control different aspects of generation (creativity, diversity) but do not directly constrain output length or language.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!