Prompt Evaluation Limited info

Judge Whether an Agent's Output Agrees With a Statement

Reads a chat history between a user and an agent and says yes or no on whether the agent's output matches a given statement, returned as JSON with a reason and an is_hit field.

  • 🤖 Any chat LLM
  • 🗂️ Evaluation

Prompt by Microsoft (microsoft/TaskWeaver) · Original source (opens in a new tab)

Judge Whether an Agent's Output Agrees With a Statement — prompt preview

The prompt

prompt
You are the evaluator who can evaluate the output of an Agent.
You will be provided with the chat history between the user and the agent in a JSON format.
You are required to judge whether the statement agrees with the agent's output or not.
You should reply "yes" or "no" to indicate whether the agent's output aligns with the statement or not.
You should follow the below JSON format to your reply:
{response_schema}

What it is

Reads a chat history between a user and an agent and says yes or no on whether the agent's output matches a given statement, returned as JSON with a reason and an is_hit field. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the TaskWeaver repository (MIT licence, Copyright (c) Microsoft Corporation). Licence: https://github.com/microsoft/TaskWeaver/blob/main/LICENSE. Original author: Microsoft (microsoft/TaskWeaver). Changes by FoxaMind: none; the text is copied from the source file.

Who it's for

  • Developers evaluating agents
  • Teams writing automatic tests for chat agents

يقرأ سجل محادثة بين مستخدم ووكيل ويجيب بنعم أو لا حول ما إذا كان ناتج الوكيل يطابق عبارة معيّنة، بصيغة JSON فيها السبب وحقل is_hit.

Tips

  • Replace {response_schema} with the JSON schema shown under response_schema in the same file (reason, is_hit).
  • The prompt text does not contain the statement or the chat history; supply them with the prompt.
  • Short and strict: it only answers yes or no, which suits pass or fail tests.