Prompt Evaluation Limited info

Score How Well the Actual Outcome Met the Desired Task

Compares a desired task with the outcome actually achieved and returns JSON with a verdict from 0 to 1 and a reason that explains the score.

  • 🤖 Any chat LLM
  • 🗂️ Evaluation

Prompt by Confident AI (confident-ai/deepeval) · Original source (opens in a new tab)

Score How Well the Actual Outcome Met the Desired Task — prompt preview

The prompt

prompt
Given the task (desired outcome) and the actual achieved outcome, compare how well the actual outcome aligns with the desired task.

Please return a JSON with two keys: `verdict` and `reason`.
- The `verdict` should be a score from 0 to 1, where 1 indicates the actual outcome perfectly achieves the desired task, and 0 indicates it does not achieve the task at all.
- The `reason` should explain why the given verdict was assigned.

**
IMPORTANT: Please make sure to only return in JSON format, with `verdict` as a float between 0 and 1.
Example:
Task: Have the system plan a weekend trip to New York, including travel, accommodation, and sightseeing.
Actual outcome: The system provided suggested flights departing on Saturday and returning on Sunday, identified hotels with check-in on Saturday and check-out on Sunday, and generated a list of sightseeing destinations in New York City.
Example JSON:
{
  "verdict": 0.85,
  "reason": "The system suggested flights, accommodation, and sightseeing options but did not fully plan the trip as expected."
}
**

Task:
{{ task }}

Actual outcome:
{{ actual_outcome }}

JSON:

What it is

Compares a desired task with the outcome actually achieved and returns JSON with a verdict from 0 to 1 and a reason that explains the score. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the deepeval repository (Apache License 2.0; pyproject.toml declares Apache-2.0). Licence: https://github.com/confident-ai/deepeval/blob/main/LICENSE.md and https://www.apache.org/licenses/LICENSE-2.0. Original author: Confident AI (confident-ai/deepeval). Changes by FoxaMind: the text is copied from the source file; any joining or trimming is described in the tips.

Who it's for

  • Developers testing agents
  • Teams building evaluation suites

يقارن المهمة المطلوبة بالنتيجة المحققة ويعيد JSON فيه درجة من 0 إلى 1 مع سبب موجز.

Tips

  • The double-brace fields are template variables from the framework that ships this prompt. Replace them with your own values.
  • The prompt includes one worked example with a 0.85 verdict, written by the authors and not a real run.
  • Use it after the task and outcome extractor in this series.