# How to run a useful test of what AI reads from your website

Research design · By Optiview · Published October 30, 2026

Updated October 31, 2026.

Canonical article: https://optiview.ai/resources/ai-retrieval-experiment-design-template/

Sources checked October 30, 2026.

Choose one question, keep the test conditions clear and save what happened so someone else can check it.

## Key takeaway

Keep the question and test conditions clear. Save enough evidence for someone else to check what happened.

A simple test can produce a misleading conclusion: you change a page, ask an AI assistant a question and get a different answer. The difference might come from the page change, the retrieval service, the model or another factor. Design the test to distinguish them.

A defensible experiment separates source publication, content acquisition and answer generation. Optiview's [existing research methodology](https://optiview.ai/proof/methodology/) uses this distinction when describing its accepted historical observations. The protocol below is a new prospective design, not an extension or reinterpretation of those results.

No new experiments have been performed for this article. The following worksheet is intended for researchers planning authorized evaluations using public or otherwise approved material.

## 1. Choose one change and one result to measure

Begin with one intervention and one measurable outcome. For example: 'Under a fixed local extraction procedure, representation B preserves more required qualifications than representation A.' This hypothesis concerns observable source preservation, not a universal improvement in AI rankings.

| Protocol field | Required definition |
| --- | --- |
| Research question | What specific uncertainty is being investigated? |
| Intervention | Which source or representation property changes? |
| Comparison | What condition remains unchanged? |
| Primary outcome | What directly observable result will be scored? |
| Secondary outcome | What additional result is exploratory? |
| Exclusions | Which conclusions are outside the study's authority? |

## 2. Save the exact source material you will test

Choose public information that can be retained and reviewed. A fixture should include the complete approved source, important facts, relevant links, qualifications and a content hash. The same factual material must be available across conditions unless content differences are the treatment being studied.

- Fixture ID, URL and ownership authorization.
- Source capture date and immutable content hash.
- Required-fact checklist with expected qualifications.
- Representation format and transformation procedure.
- Expected links and supporting references.
- Known limitations and excluded content.

The [HTTP Semantics specification](https://www.rfc-editor.org/rfc/rfc9110.html) defines response representations and negotiation. These concepts help specify fixtures, but an HTTP response alone does not prove what a separate AI provider received.

## 3. Define what changes and what stays the same

| Condition | Example | Controlled property |
| --- | --- | --- |
| A: Baseline | Approved HTML source | Original facts and links |
| B: Treatment | Equivalent prepared representation | Same approved factual content |
| C: Optional comparison | Approved contextual supplement | Explicitly documented additional information |

Condition C adds information, so it cannot establish an effect caused only by format. If the objective is format comparison, keep factual content equivalent between A and B. Document differences that cannot be eliminated.

## 4. Save every test result, including failures

| Field | What to retain |
| --- | --- |
| Run ID | Unique execution identifier |
| Condition | Exact fixture and treatment |
| Question | Unchanged question text |
| Environment | Tool, model, settings and date |
| Retrieval | Actual observed response or unavailable marker |
| Answer | Complete output where authorized |
| Score | Rubric result with supporting evidence |
| Failure | Timeout, refusal, missing source or other issue |

Retain all planned observations, including unsuccessful ones. Do not silently replace failures with later successful attempts. The [W3C provenance overview](https://www.w3.org/TR/prov-overview/) provides concepts for associating information with its production activities, though this worksheet does not claim formal PROV compliance.

## 5. State what the results could—and could not—show

1. Register the hypothesis, fixtures, questions and scoring rubric before execution.
2. Obtain authorization for any tools, data or external requests.
3. Run only the approved conditions and retain complete observations.
4. Score independently of the preferred outcome.
5. Report sample size, exclusions, failures and uncertainty.
6. Separate local transformation results from external retrieval and answer causality.

A completed test plan is not a completed experiment or a research finding. For examples of how Optiview distinguishes reported observations and limitations, review the [historical methodology appendix](https://optiview.ai/proof/methodology/).
