Compare two versions of a document with AI

Line up sections, preserve source versions, and distinguish changed facts from changed phrasing.

Provide two labeled sources

Tell the assistant which draft is earlier and which is proposed. Add the expected decision, such as checking whether obligations changed when a memo was shortened. For documents stored in a repository, a permanent link can identify the exact file version. For attachments, supply version labels and name the sections that matter. File-input guidance describes what an application can make available to the model. 1 2

Ask for comparisons that reflect the reader’s job

Separate changes of facts, meaning, and presentation. A new date is a factual change. A stronger verb can change an obligation even if the topic remains the same. A heading moved from one section to another might only affect reading order. Anthropic’s prompting guidance recommends explicit desired outputs, so set these categories in the brief and include one example if they might overlap. 3

Review one claimed change and one claimed carryover

Open both versions and locate the old and new wording. Check that a sentence paraphrase did not silently remove a qualifier. Also verify a detail the assistant says stayed the same. If source order differs, use stable headings, paragraph labels, or IDs to match records. The result should help an editor decide whether the proposed version reflects the intended change.

Name the sections that can be excluded from the comparison if appendices or reference lists have separate maintainers.

Sources

  1. GitHub guide to permanent snippet links
  2. OpenAI API file inputs guide
  3. Anthropic prompting best practices