atlas-answer_consistency

Answer Consistency

Evaluates whether an AI system gives the same answer when given the exact same prompt several times, using a user-provided set of prompts and a judge model that compares the answers with each other.
Tags:
Performance

Overview

The Answer Consistency evaluation measures whether an AI system gives the same answer when it is given the exact same prompt several times. The prompts are provided by the user, so the evaluation can be tailored to any domain, product or knowledge base. No reference answers are needed: the evaluation measures agreement between the answers, not whether they are correct.

Metrics

Consistency

The average, over all prompts, of the share of answers that agree with the most common answer to that prompt (range: 1/N to 1.0, where N is the number of answers per prompt).

Consistency
0.01.0
0.2
0.6
0.8
1.0
0.2With 5 answers per prompt, every answer was different from every other answer.
0.6On average, 3 out of 5 answers to a prompt agreed.
0.8On average, 4 out of 5 answers to a prompt agreed.
1.0For every prompt, all answers agreed.

Motivation

Most AI systems generate text with some randomness, and many users send the same prompts. If the answer changes from one request to the next, two users sending the same prompt can be told different things, and a single user who sends it again can receive a different answer than the first time. Neither user can tell which answer to trust.

Inconsistency is also a warning sign that is independent of correctness. An AI system that is inconsistent on a prompt is, at best, correct only some of the time on that prompt, and its answers do not reflect stable knowledge or a stable policy. Because the evaluation needs no reference answers, it can be run on real user prompts for which no correct answer has been written down.

Methodology

  1. Test Cases: The user provides a dataset of prompts. Only the prompt column is needed; its name is configurable.
  2. Model Response: Each prompt is sent to the AI system N times (configurable, default 5) as separate requests with no shared conversation history.
  3. Consistency Scoring: A judge model receives the prompt and all N answers. It groups together answers that give the same answer to the prompt and returns the share of answers in the largest group.
  4. Metric Computation: The mean score across all prompts yields the consistency.

Scoring

Answer Consistency

Answer Consistency
Score valueExplanation
1.0All answers to the prompt give the same answer, possibly in different words, formats or levels of detail.
0.6With 5 answers, 3 agree with each other and the other 2 give a different answer.
0.2With 5 answers, every answer gives a different answer to the prompt.

Examples

Consistent answers

Answer 1

User
How many days do I have to return an unused item?
Assistant
You can return unused items within 30 days of delivery.

Answer 2

User
How many days do I have to return an unused item?
Assistant
Our return window is 30 days from the delivery date. The item must be unused and in its original packaging.
Answer Consistency
1.0

Both answers state a 30-day return window from delivery; the extra detail about packaging does not change the answer.

Inconsistent answers

Answer 1

User
Can I get a refund if I cancel my subscription after 20 days?
Assistant
Yes, subscriptions cancelled within 30 days are fully refunded.

Answer 2

User
Can I get a refund if I cancel my subscription after 20 days?
Assistant
Refunds are only available within the first 14 days, so a cancellation after 20 days is not refunded.
Answer Consistency
0.5

The two answers reach opposite decisions (refund vs. no refund) based on different refund windows, so each forms its own group of 1 out of 2 answers.

Run Evaluation in LatticeFlow AI Platform

Use the following CLI command to initialize and run the evaluation in LatticeFlow AI Platform.
Requires LatticeFlow AI Platform CLI
lf init eval --key atlas-answer_consistency

Metrics

Consistency

Don't have the LatticeFlow AI Platform?

Contact us to see this evaluation in action:
Contact Us