Sub topic 5
Why Answers Differ Between Runs and How Many Repeats You Need
This chapter assumes you can use a chat-based AI assistant, keep a prompt set, and record results in a spreadsheet or JSON file. You should also understand the difference between a prompt and an answer. The goal here is to measure variation, not to explain every internal detail of a particular assistant.
Why the same prompt can produce different answers
An AI assistant does not retrieve one permanent answer from a fixed database. It combines a language model with instructions, conversation context, and sometimes a search or retrieval system. Several parts of that process can change between runs.
- The model may select different likely words or sources when several answers fit the prompt.
- A web-enabled assistant may retrieve different pages as search indexes, rankings, and page content change.
- The assistant may receive updated system instructions or use a different model version.
- Your conversation history, account, location, language, and enabled features can affect the result.
- Small differences in punctuation, whitespace, or prompt wording can change the retrieved context.
- Temporary service conditions can alter which tools or sources the assistant uses.
This variation is often called nondeterminism. It means that one answer is a sample from the assistant's behavior, not a complete description of it.
A missing brand mention in one answer does not prove that the assistant never mentions the brand. A mention in one answer does not prove that the brand is consistently visible.
Use a controlled repeat protocol
Control the conditions that you can control. For every run, record:
- Exact prompt text and prompt ID
- Assistant and model name, if shown
- Mode, such as web search enabled or disabled
- Date and time, including time zone
- Account, region, language, and other relevant settings
- Whether the conversation was new or continued
- The answer text, citations, and any tool or search indicators
For a clean comparison, start a new conversation for each run unless your real users normally continue a conversation. Paste the exact prompt without adding follow-up text. Keep the assistant, mode, and account constant. If a setting cannot be controlled, record it and treat it as a source of uncertainty.
Do not silently replace an error with a second attempt. Record the failed run, then decide in advance whether your protocol allows a retry. Otherwise, the retry can make the brand appear more visible than it really was.
> callout note > Decide what counts as a valid run before testing. A service timeout, an empty response, and an answer that omits your brand are different outcomes.
Choose the number of repeats
Use the same number of runs for each prompt in a comparison group. A practical starting point is:
| Use case | Repeats per prompt | What it supports |
|---|---|---|
| Quick exploration | 3 | Finding obvious patterns and test problems |
| Regular monitoring | 5 | A useful directional rate |
| Important decision or noisy assistant | 10 or more | More stable comparisons |
Five runs can show that a prompt produced three mentions, giving a mention rate of 60%. That percentage is useful, but it is still based on very little data. One additional answer changes the rate by 20 percentage points.
For a binary outcome such as “brand mentioned” or “not mentioned,” the approximate standard error of a rate is:
standard error = square root of rate × (1 − rate) ÷ number of runs
With five runs, a rate near 50% is highly uncertain. Increasing the number of runs reduces that uncertainty, but repetition cannot remove changes caused by model updates or search-index changes. For that reason, report both the rate and the number of runs, such as “3 of 5 runs, or 60%,” rather than reporting “60%” alone.
Aggregate results instead of counting impressions
Count at most one mention outcome per run for a given prompt. If an answer names the brand four times, that is normally one mentioning run, not four successful runs. Track repeated names separately if you also want to measure prominence.
def mention_rate(mentions: list[bool]) -> float:
"""Return the share of runs that mentioned the brand."""
if not mentions:
raise ValueError("At least one run is required")
return sum(mentions) / len(mentions)
runs = [True, False, True, True, False]
rate = mention_rate(runs)
print(f"{sum(runs)} of {len(runs)} runs ({rate:.0%})")
# 3 of 5 runs (60%)Repeat each prompt, not just the entire prompt set once. A discovery question may vary more than a branded question. Compare rates within the same prompt type and keep the test conditions visible.
Interpret variation as a finding
Large variation can reveal an unstable visibility pattern. Investigate whether the changing answers also differ in cited sources, recommendation order, factual claims, or competitor mentions. Do not immediately conclude that content changes caused the movement. First check for a model update, a mode change, a different prompt, or a changed search result.
A repeat protocol gives you a distribution of observed outcomes. It does not reveal every answer the assistant could produce, and it does not predict every user's experience. Treat the results as evidence for comparison and monitoring, not as a universal ranking.
Exercise
An exact prompt produces a brand mention in 2 of 5 fresh conversations. What should you report?
Show answer
Report a mention rate of 40%, written as “2 of 5 runs,” together with the assistant, mode, date, and other recorded conditions. Do not report that the brand is always or never mentioned.