Prompting techniques · Question 47 of 60

A few-shot prompt contains three example test cases, all with valid inputs. The model returns almost only positive tests. What is the most obvious improvement?

1 answer is correct. Hard Created with AI

Show answer

Answer

  • A Also include examples with invalid inputs

Explanation

Few-shot examples strongly shape the model's behaviour: it follows the pattern shown. If you want negative tests, show them in the examples or ask for them explicitly.

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