Prompting techniques · Question 43 of 60

A prompt reads: "Example: postcode '1234' gives 'invalid, only four digits'. Now assess: '9A123'." Which technique is this?

1 answer is correct. Hard Created with AI

Show answer

Answer

  • A One-shot prompting

Explanation

The prompt contains exactly one example of input and expected result, followed by the new input. That is one-shot; with two or more examples it would be few-shot.

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