Prompts for comparing two document versions
Documents change through many rounds of drafting and review. A contract goes through several markups, a policy is revised after consultation, and a report is updated each year. Writers often ask AI tools to say what changed. Prompts for comparing two document versions can save time, but a tool’s summary of changes is not the same as a reliable record of them. This article covers how to prompt for comparisons and how to check the results.
What AI comparison can and cannot do
AI tools are good at describing changes in plain words. They can say that a section was reorganized, that a tone became more formal, or that a new requirement was added. This is useful when a reader needs to understand the effect of a revision rather than every edit.
They are less reliable at finding every change. Nelson Liu and colleagues found that model “performance is often highest when relevant information occurs at the beginning or end of the input context.”1 In two long documents, a change in the middle may be missed. A small edit, such as a changed number or a deleted “not,” can also slip past.
Tools can also report changes that did not happen. The NIST Generative AI Profile notes that tools “can also produce outputs that are factually inaccurate or internally inconsistent.”2 A summary might say a clause was removed when it was only moved. For any document where changes carry legal or financial weight, a mechanical comparison tool should remain the record.
Prompts for comparing two document versions
Label the versions clearly. Give each version a name, such as “Version A (March draft)” and “Version B (April draft),” and tell the tool which is earlier. Without labels, a tool may mix up which text is new.
Ask for a structured list. A prompt such as “List each change from Version A to Version B. For each, give the section, quote the old text, quote the new text, and describe the change in one sentence” gives output that can be checked. Quoted text lets the reviewer find each change in both documents.
Ask about specific kinds of change. Separate prompts for changes to numbers and dates, changes to obligations or requirements, and changes to defined terms often catch more than one general request. Each prompt focuses the tool on a narrower task.
Ask for effect, not only edits. For a policy or contract, a useful prompt is “For each change, say who is affected and whether their obligations increase, decrease, or stay the same.” The reviewer still checks each answer against the text. Our article on when an AI summary contradicts its source explains why this check matters.
Split long documents. Compare section by section rather than whole documents at once. This reduces the risk of missing changes in the middle. Our article on context windows and long documents explains the limits that make this necessary.
Checking the comparison
Run a mechanical comparison as well. Word processors and dedicated tools can show every inserted and deleted character. Use the AI summary to understand the changes and the mechanical comparison to confirm them.
Check every quoted change. For each item in the AI list, find the old and new text in the documents. Remove any item that cannot be found, and note any change in the mechanical comparison that the AI list missed.
Do not ask the tool to confirm its own work. A study by Mrinank Sharma and colleagues found that “five state-of-the-art AI assistants consistently exhibit sycophancy across four varied free-form text-generation tasks.”3 If a reviewer asks whether the list is complete, the tool may agree that it is. A better test is to ask for changes in a specific section and compare the answer with the first list.
Watch for over-trust. Research on automation bias, summarized in a 2012 review by Kate Goddard and colleagues, describes “the tendency to over-rely on automation.”4 A reviewer who receives a clear, confident list may stop looking for more. Treat the list as a guide to where to look, not as the final answer.
Recording changes
Keep the comparison with the versions. Store the AI summary, the mechanical comparison, and both versions together. Note who checked the summary and when. Our article on version control for AI documents covers how to manage versions when AI tools are involved.
Our Workflow Setup and Training service helps teams build tested prompts and checks for document comparison. Client documents go only into tools the client has approved, and decisions on accepting changes remain with the client. A clear, checked record of what changed helps every reader of the next version.
Notes
- Nelson F. Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang, “Lost in the Middle: How Language Models Use Long Contexts,” Transactions of the Association for Computational Linguistics 12 (2024): 157–173. https://aclanthology.org/2024.tacl-1.9/
- National Institute of Standards and Technology, Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1), July 2024, section 2.2. https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.600-1.pdf
- Mrinank Sharma and colleagues, “Towards Understanding Sycophancy in Language Models,” arXiv:2310.13548, version 4, May 10, 2025. https://arxiv.org/abs/2310.13548
- Kate Goddard, Abdul Roudsari, and Jeremy C. Wyatt, “Automation bias: a systematic review of frequency, effect mediators, and mitigators,” Journal of the American Medical Informatics Association 19, no. 1 (2012): 121–127. https://doi.org/10.1136/amiajnl-2011-000089