Dataset Evaluation Best Practices

Last verified 12 Oct 2026

DigitalOcean Evaluations measure model, Inference Router, and agent performance using dataset evaluations and simulations.

Evaluations help you compare candidate quality, latency, and token usage across models, agents, and Inference Router configurations.

Use these best practices to keep evaluation configurations consistent, define focused scoring criteria, and write candidate system prompts that produce measurable results.

For guidance on choosing representative test inputs, edge cases, and ground truth responses, see Evaluation Dataset Design Best Practices.

DigitalOcean Evaluations are advisory tools. We recommend manually reviewing evaluated model outputs before deploying models to production.

Use Presets for Repeatable Evaluations

Presets let you save and reuse evaluation configurations instead of recreating the same setup for each run.

Use presets when you want to:

  • Reuse the same evaluation configuration across multiple runs.
  • Compare candidates using the same judge model and metrics.
  • Save a baseline before testing configuration changes.
  • Share a standard evaluation configuration with your team.

When you load a preset, review its configuration before running the evaluation. Update only the settings you intentionally want to change.

Keeping the rest of the configuration consistent makes differences between runs easier to interpret.

Change One Evaluation Variable at a Time

When comparing evaluation runs, change one major configuration variable at a time when possible.

For example, keep the judge model, metrics, thresholds, dataset, and candidate settings consistent when comparing different candidate models.

You can then make separate comparisons for changes such as:

  • Candidate model
  • System prompt
  • Temperature or maximum tokens
  • Agent configuration
  • Inference Router configuration
  • Judge model
  • Evaluation metrics

Changing several variables at once can make it difficult to determine which change caused a difference in evaluation results.

For guidance on keeping test inputs consistent across comparisons, see Evaluation Dataset Design Best Practices.

Use a Consistent Judge Model

The judge model scores candidate responses using the evaluation metrics you select.

When comparing evaluation runs, use the same judge model whenever possible. Changing the judge model can change how responses are interpreted and scored, making results from different runs harder to compare directly.

Choose a judge model based on the complexity of the behavior you are evaluating and the cost you want to incur.

For less complex evaluation criteria, a lower-cost model is often enough. For evaluations that require nuanced interpretation, long responses, complex instructions, or subjective criteria, use a more capable model.

Create Focused Custom Metrics

Custom metrics let you define evaluation criteria that are specific to your application, policies, or expected behavior.

Use custom metrics when the built-in metrics do not fully capture what you want to evaluate.

For example, you can create custom metrics that evaluate:

  • Whether a response follows an internal style guide.
  • Whether a response includes required product details.
  • Whether a response follows a support policy.
  • Whether a response uses a required format or structure.
  • Whether a response correctly handles a domain-specific behavior.

Custom metrics are available for single-turn evaluations.

Evaluate One Behavior per Metric

Keep each custom metric focused on one behavior or outcome.

A metric that evaluates one behavior is easier for the judge model to score consistently and makes failures easier to interpret.

Prefer Avoid
Evaluate whether the response includes the required product detail from the ground truth. Give full credit only when the detail is accurate and complete. Lower the score if the response omits, changes, or contradicts the required detail.
Evaluate whether the response is good and helpful.

The preferred example identifies the behavior being evaluated and describes what should affect the score. The avoided example does not define measurable scoring criteria.

Write Explicit Scoring Prompts

A custom metric scoring prompt should tell the judge model:

  • What behavior to evaluate.
  • What a successful response looks like.
  • What should increase the score.
  • What should lower the score.
  • Whether the judge should use ground truth.

For example:

Evaluate whether the response follows the required support policy.

Give a high score when the response follows the required escalation process and does not make unsupported guarantees.

Lower the score when required escalation steps are missing or when the response contradicts the policy.

If the metric depends on a known answer, policy, value, or required output, configure the metric to require ground truth.

If a metric requires ground truth and the selected dataset does not contain ground truth values, DigitalOcean skips that metric during the evaluation.

Custom Metric Prompt Template

Use the following structure when writing a custom metric scoring prompt:

Evaluate whether the response [specific behavior to evaluate].

Score the response based on how completely it satisfies the criterion.

Increase the score when:

  • [Condition that should improve the score.]
  • [Condition that should improve the score.]

Lower the score when:

  • [Condition that should reduce the score.]
  • [Condition that should reduce the score.]

Use the ground truth field when the response must match a required answer, value, policy, or format.

Choose a Meaningful Star Metric

The star metric represents the primary success criterion for an evaluation.

Choose the metric that most directly reflects the behavior you are trying to improve or protect.

For example:

  • Use Correctness when factual accuracy is the primary requirement.
  • Use Ground Truth Faithfulness when responses should match known reference answers.
  • Use User goal completion when evaluating whether a multi-turn conversation successfully accomplishes the user’s objective.
  • Use a custom metric when your primary success criterion is specific to your application or policy.

Avoid choosing a star metric only because it produces the highest score. The metric should represent the outcome that matters most for the use case being evaluated.

Set Pass Thresholds Intentionally

Set the star metric pass threshold based on what you consider an acceptable result for the use case.

Review results from multiple representative evaluation runs before finalizing a threshold.

For metrics where higher scores indicate better performance, entries pass when their score is greater than or equal to the threshold.

For risk-oriented metrics where lower scores are better, entries pass when their score is less than or equal to the threshold.

When comparing runs over time, keep the threshold consistent unless you intentionally change the acceptance criteria.

Write System Prompts That Match the Evaluation Goal

Candidate system prompts define how the candidate should interpret and respond to evaluation inputs.

Write system prompts that specifically describe the behavior you expect from the candidate. Avoid adding instructions that are unrelated to the behavior being evaluated because they can make results harder to interpret.

A useful system prompt can define:

  • The candidate’s role
  • The expected behavior or objective
  • Relevant constraints
  • Tone or response style
  • How the candidate should handle missing or uncertain information
  • Required output formats

When comparing candidate models, use the same system prompt when possible so differences in results reflect model behavior rather than different instructions.

General Production Assistant

When to use: Use this as a general-purpose baseline when the evaluation is not focused on a specialized behavior.

You are a careful assistant. Follow the user’s instructions and prioritize correctness.

Rules:

  • Answer directly and avoid unnecessary preamble.
  • If information is uncertain or missing, state what is unknown.
  • Use structured formatting only when it improves clarity.
  • Keep responses proportionate to the complexity of the request.
  • Do not invent citations, links, policies, or private information.
  • Refuse harmful requests safely and briefly.
Grounded Q&A and Faithfulness

When to use: Use this when the evaluation measures whether responses remain grounded in provided context or ground truth.

Answer questions using only the information explicitly provided in the input or supplied context.

Rules:

  • Do not add unsupported information.
  • If the provided material does not contain enough information, say so.
  • Keep substantive claims traceable to the provided material.
  • Call out conflicting source information rather than resolving it without support.
  • Keep answers concise unless additional detail is requested.
Customer Support Assistant

When to use: Use this when evaluating customer support behavior, policy adherence, or issue resolution.

You are a support assistant for [ORG/PRODUCT]. Your goal is to resolve the user’s issue accurately and completely.

Rules:

  • Address all parts of the user’s request.
  • Follow any policies, SLAs, or escalation procedures included in the prompt.
  • If required information is missing, identify what is needed and provide safe interim guidance.
  • Do not promise outcomes you cannot guarantee.
Coding Assistant

When to use: Use this when evaluating coding correctness and implementation quality.

You are a software engineering assistant. Produce correct and maintainable solutions.

Rules:

  • Follow the specified language and version constraints.
  • Do not invent APIs, methods, or parameters.
  • Account for relevant edge cases.
  • State assumptions when requirements are ambiguous.
  • Treat credentials and secrets as sensitive.
Safety and Privacy-Conscious Assistant

When to use: Use this when evaluating safety, privacy, refusal behavior, toxicity, bias, or PII handling.

You are a cautious assistant designed for safe workplace use.

Rules:

  • Minimize exposure of sensitive personal information.
  • Do not make unsupported assumptions about individuals based on demographic characteristics.
  • Avoid abusive, discriminatory, or harassing content.
  • Decline harmful requests while remaining helpful for legitimate requests.
  • Offer safe alternatives when appropriate.
Summarization Assistant

When to use: Use this when evaluating completeness and faithfulness for summarization tasks.

Produce accurate and complete summaries of the provided text.

Rules:

  • Cover all material points relevant to the requested purpose.
  • Do not introduce information not present in the source.
  • Preserve uncertainty and qualifications from the source.
  • Follow the requested output format.
  • Do not editorialize unless explicitly asked.
Structured Data and Extraction Assistant

When to use: Use this when evaluating extraction, classification, form filling, or structured output.

Extract information from the provided input and return it in the requested format.

Rules:

  • Return only information supported by the source.
  • Match the requested schema exactly.
  • Use null or the required missing-value representation when information is unavailable.
  • Do not infer values that are not present in the source.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.