Creating Golden Examples: Curate Reliable Cases for Prompts and Evaluations
A golden example is a reviewed, selected case that clearly shows an input and its expected result for a particular task. It can guide a model as a prompt demonstration or serve as a reference during evaluation. The term “golden example” does not name one universal procedure or standard across research and products. Here it means a high-confidence case whose source and label rationale are traceable and that has been reviewed for its intended use.
A golden example is a reviewed, selected case that clearly shows an input and its expected result for a particular task. It can guide a model as a prompt demonstration or serve as a reference during evaluation. The term “golden example” does not name one universal procedure or standard across research and products. Here it means a high-confidence case whose source and label rationale are traceable and that has been reviewed for its intended use.
A good example is not merely polished or exemplary-looking. It represents the real task, has an explainable expected answer or grading rule, and does not contradict other examples. Prompt demonstrations and final evaluation references serve different purposes and should be managed separately.
Separate the two uses
| Use | What the example does | Main control |
|---|---|---|
| Prompt demonstration | Shows an input and desired output so the model can follow a pattern | Align with instructions and cover important types and boundaries |
| Evaluation reference | Compares model output with an expected result or rubric | Make labels and criteria clear; keep final cases out of development and tuning |
Data of the same type can support both uses, but reusing the exact cases shown in a prompt for evaluation makes it hard to tell whether the model learned a rule or memorized answers. Mark prompt demonstrations as development material and keep a separate held-out set for final assessment. This matters especially when prompts are revised repeatedly.
What makes an example trustworthy?
Task fit: The case should belong to the actual problem being solved. A useful example outside the task’s scope is not a sound prompt demonstration or evaluation reference.
Justified answer: Be able to explain why the expected output follows from the input. Record the relevant rule, source text, approved policy, or expert judgment. Natural language can be ambiguous; do not force a single label onto a case with no defensible single answer. Mark it as a boundary case or narrow the task definition.
Coverage and diversity: Include common inputs as well as important subtypes and boundary cases. Duplicates that differ only by a word do not add meaningful diversity. Reflect realistic variation in length, tone, typos, and context without letting rare cases distort the overall usage distribution. For safety-critical or costly failures, account for risk separately from frequency.
Consistency: Outputs must match the prompt’s rules, output schema, and labels in other examples. A case that implies a different rule can confuse the model.
Traceability and permission: Record case provenance, collection date, transformations or anonymization, label rationale, review status, permitted use, and restrictions. Protect personal and confidential information, and check whether the data may be sent to an external service.
A process for building reliable examples
**Fix the use and decision question.** Decide whether a case is for a prompt demonstration or an evaluation reference. State in one sentence what the case should distinguish. Turn vague criteria such as “good answer” into observable conditions.
**Collect candidate inputs.** When possible, start with actual user requests, real failures, and approved public sources. If these are unavailable, use expert-written or synthetic candidates and record which they are. Do not treat model-generated candidates as correct until a person verifies them.
**Write labeling and judgment rules.** Specify inclusion and exclusion criteria, handling of boundary cases, whether multiple answers are acceptable, and required output format—not just label names. Check that each case contains the information needed to judge it.
**Review independently and resolve disagreements.** Important cases can be labeled separately by two or more reviewers. When they disagree, find the unclear rule before resolving by vote; revise the guidance and recheck affected cases. Agreement is a clue about review quality, not proof that labels are true. Interpret it carefully with small or imbalanced samples.
**Separate prompt examples from evaluation cases.** Mark cases shown to the model as development examples. Use non-overlapping held-out cases for the final performance decision. An evaluation case repeatedly inspected and used for tuning is no longer fully independent.
**Test with a small set first.** Before adding more prompt examples, check whether they teach the important categories and decision boundaries. Look for contradictions or accidental repeated patterns. The useful number varies by model and task; there is no fixed count that guarantees quality. Compare prompt changes on the same evaluation set.
**Version and document changes.** Keep an example ID, input, expected output or rubric, intended use, provenance, rationale, review status, language/domain, privacy treatment, dataset version, and change reason. Revisit cases when policies or criteria change, and do not assume scores under old and new rules are directly comparable.
Worked example: classifying support requests
Hypothetical example: A system assigns each request to delivery, refund, or account, and sends uncertain cases to a person.
Input: “It says my refund was processed, but I still don’t see it on my card.”
Expected output: refund.
Rationale: The user asks about refund status and does not mention delivery or an account issue.
Boundary case: “I cancelled the order, but it looks like the package has already shipped.”
Handling: This combines cancellation and delivery. First decide whether the task requires one primary category, allows multiple labels, or should escalate. Until the policy is clear, keep this as a review case rather than a golden case with a final label.
The first pair can demonstrate a label and its rationale in a prompt. If used as an evaluation reference, keep it separate from similar development examples and verify that reviewers can reproduce the expected label using the written rules. This hypothetical example illustrates a design method, not a real product result.
Warning signs and fixes
**Examples contradict the rules:** clarify the policy and re-review every affected case.
**Only polished text appears:** add privacy-safe realistic variation such as short wording, typos, and missing context.
**Familiar benchmark items are reused:** use new, authorized held-out cases so memorization is not mistaken for generalization.
**No one can explain a label:** check its source and criteria; leave it unresolved if the evidence is insufficient.
**Reviewer disagreement is ignored:** investigate gaps in the instructions; revise rules or allow multiple answers where appropriate.
**More examples lower performance:** inspect duplicates, imbalance, format errors, or conflicting instructions, then compare changes on the same evaluation set.
Maintenance and responsible use
Recheck examples when user behavior, product scope, policy, or models change. Investigate new failures before adding them; copying every one-off error can make a set repetitive or biased. Keep records of edits, anonymization, and exclusions. Manage privacy, copyright, access, and retention. Do not describe real customer text as synthetic or expose it publicly as evidence of a product’s behavior.
Takeaway
A golden example is not simply a polished answer. It is a governed reference case with a defined use, traceable rationale, and coverage appropriate to the task. Define the task, document why each label is justified, isolate boundary cases, and use independent review and held-out evaluation. Link prompt demonstrations to final assessment without casually reusing the same cases.
Sources
[OpenAI API: Prompt engineering](https://developers.openai.com/api/docs/guides/prompt-engineering) — prompt demonstrations and evaluation of prompt behavior. Accessed 2026-11-23.
[OpenAI API: Evaluation best practices](https://developers.openai.com/api/docs/guides/evaluation-best-practices) — typical, edge, and adversarial cases and expert labeling. Accessed 2026-11-23.
[Anthropic: Prompting best practices](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices) — relevance, diversity, and structure of examples. Accessed 2026-11-23.
[Klie, Eckart de Castilho, and Gurevych, “Analyzing Dataset Annotation Quality Management in the Wild” (2023)](https://arxiv.org/abs/2307.08153) — annotation validation, training, agreement, adjudication, and recurring reporting limitations.