Prompt Evaluation Limited info

Compare a Submitted Answer With an Expert Answer for Facts

Compares the factual content of an answer with an expert answer, ignoring style, and picks one of five options: subset, superset, same details, disagreement or differences that do not matter.

  • 🤖 Any chat LLM
  • 🗂️ Evaluation

Prompt by OpenAI (openai/evals) · Original source (opens in a new tab)

Compare a Submitted Answer With an Expert Answer for Facts — prompt preview

The prompt

prompt
You are comparing a submitted answer to an expert answer on a given question. Here is the data:
[BEGIN DATA]
************
[Question]: {input}
************
[Expert]: {ideal}
************
[Submission]: {completion}
************
[END DATA]

Compare the factual content of the submitted answer with the expert answer. Ignore any differences in style, grammar, or punctuation.
The submitted answer may either be a subset or superset of the expert answer, or it may conflict with it. Determine which case applies. Answer the question by selecting one of the following options:
(A) The submitted answer is a subset of the expert answer and is fully consistent with it.
(B) The submitted answer is a superset of the expert answer and is fully consistent with it.
(C) The submitted answer contains all the same details as the expert answer.
(D) There is a disagreement between the submitted answer and the expert answer.
(E) The answers differ, but these differences don't matter from the perspective of factuality.

What it is

Compares the factual content of an answer with an expert answer, ignoring style, and picks one of five options: subset, superset, same details, disagreement or differences that do not matter. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the OpenAI Evals repository (MIT licence, Copyright (c) 2023 OpenAI). Licence: https://github.com/openai/evals/blob/main/LICENSE.md. Original author: OpenAI (openai/evals). Changes by FoxaMind: none; the text is copied from the source file.

Who it's for

  • Developers building evals
  • Teams checking answers against a reference

يقارن المحتوى الواقعي لإجابة مع إجابة خبير متجاهلًا الأسلوب، ويختار أحد خمسة خيارات: مجموعة جزئية، مجموعة أشمل، نفس التفاصيل، تعارض، أو فروق لا تهم.

Tips

  • Fill {input}, {ideal} (the expert answer) and {completion}.
  • The five options let you score partial answers differently from conflicting ones; scoring them is left to you.
  • The prompt tells the grader to ignore grammar and punctuation, so wording differences are not penalized.