Prompt
How can I tell whether our content changes affected LLM answers?
Latest observation
To tell whether your content changes affected LLM answers, treat it like an experiment and measure the model before vs. after on a fixed test set.
1) Pick a stable set of questions
Create a benchmark of real user queries:
- Top customer questions
- Questions where you changed content
- Questions with known “correct” answers
- A mix of easy, ambiguous, and edge-case queries
Keep this set fixed so you can compare results over time.
2) Run the same prompts against before/after content
For each question:
- Query the LLM with the old content
- Query the LLM with the new content
- Keep everything else constant:
- model version
- system prompt
- temperature
- retrieval settings
- top-k / context window
- prompt template
If your pipeline uses RAG, you should compare the full retrieval + generation stack, not just the raw model.
3) Score the answers
Use a rubric with categories like:
- Correct / partially correct / incorrect
- More complete
- Less hallucination
- Better citation fidelity
- Worse / better tone
- Missing key facts
- Introduced contradictions
You can score with:
- human review
- automated evals
- LLM-as-judge, ideally with spot checks from humans
4) Compare key metrics
Track changes in:
- exact answer accuracy
- factual consistency
- citation precision/recall
- refusal rate
- “I don’t know” rate
- hallucination rate
- answer completeness
- user satisfaction / CSAT if available
Also measure by question type, not just overall averages.
5) Check retrieval separately
If you use search or embeddings:
- Did the right docs get retrieved?
- Did the changed content rank higher/lower?
- Did chunking or metadata changes affect retrieval?
Sometimes answer changes come from retrieval changes, not the model itself.
6) Use paired analysis
Because each question is asked twice, compare before vs. after on the same question:
- “Did this answer improve, worsen, or stay the same?”
- Calculate percentage of improved / degraded answers
- Look for statistically significant changes if you have enough samples
7) Watch for unintended side effects
Content updates can:
- improve one topic while hurting another
- make answers more verbose but less precise
- increase citation confidence without improving accuracy
- shift the model toward outdated or partial info
So inspect examples manually, not just metrics.
8) Practical workflow
A simple setup:
- Export 100–500 representative queries
- Capture before-change answers
- Deploy content change
- Re-run the same queries
- Have human reviewers or an eval model score differences
- Report deltas by topic and severity
9) If you want high confidence
Use an A/B test in production:
- route a small portion of traffic to the new content
- compare live outcomes
- watch for business metrics, not just model metrics
10) A useful output format
For each query, store:
- query text
- retrieved docs/chunks
- answer before
- answer after
- rubric score before/after
- change type: improved / regressed / neutral
- notes on why
If you want, I can help you design a concrete evaluation template or a scoring rubric for your content changes.