Study FAQ
When should I use zero-shot, single-shot, or multi-shot prompting with Claude?
Also asked as 2
- How many examples should I include in a Claude prompt?
- How do I decide whether a Claude prompt needs one example, several, or none?
Answer
Start zero-shot when the task and output rules clearly define success. Add one example when a particular format or decision boundary is unclear. Use multiple examples when Claude must distinguish varied cases or handle several meaningful boundaries. Keep examples correct, relevant, and consistent with the expected output, then measure whether they fix the observed failure. Claude prompting best practices
For a routing classifier, one example can show how to cite evidence for a category. Several well-chosen examples can show how nearby categories differ and when missing evidence goes to review. Vary incidental names and numbers so the model has less reason to copy them. Include only examples that justify the context they consume.
Hold back separate test cases that exercise the same skill with different inputs. Compare the versions on routine, ambiguous, and out-of-scope cases and check whether examples introduce copying or overfitting. Clear success criteria and independent tests make the change measurable. Prompt engineering overview Define success criteria and build evaluations
Full explanation
Prompt Engineering for Reliable Claude Applications
Study guide · CCDV-F
Read the full explanation