Designing prompts · Question 11 of 12

A model should classify support tickets as "hardware", "software" or "account" but often returns whole sentences. Which changes help?

2 answers are correct. Hard Created with AI

Show answer

Answer

  • C Showing a few examples with a ticket and exactly one label
  • D Requiring in the prompt to output only one of the three words

Explanation

A clear format requirement and few-shot examples with exactly one label steer the model to the desired output. A low temperature or a JSON schema with fixed values also helps. Without a list of categories, the model invents its own.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications