🍿 Just a moment #02
Have you ever had to compare two versions of a complex document? What if one is a digital PDF and the other is a scan, spanning hundreds of pages, with different layouts and pagination? In this episode, see how Gemini’s native multimodality spots subtle differences, from tiny typos to $100M contract updates, in a single prompt.
https://medium.com/media/ec8d144ca4c89631d065f354e1c29007/href
Possible prompt template (used in the video):
<DOCUMENT_A>
…
</DOCUMENT_A>
<DOCUMENT_B>
…
</DOCUMENT_B>
TASK:
Perform an exhaustive, character-by-character textual comparison between DOCUMENT_A and DOCUMENT_B.
CRITICAL REQUIREMENTS:
1. You must systematically verify every numbered paragraph sequentially from start to finish.
2. You must catch every single difference, including single-character changes, minor typos, spelling corrections (e.g., missing letters in common words), and punctuation changes, in addition to substantive changes (numbers, dates, names).
OUTPUT FORMAT:
Difference #[1, 2, 3…]
Location: [location]
Evidence A: "[short quote from Document A]" with difference in *bold*
Evidence B: "[short quote from Document B]" with difference in *bold*
Explanation: [brief description]
More
- 🔗 Document understanding → https://g.dev/cloud/document-understanding
- 🔗 Gemini models → https://g.dev/cloud/gemini-models
- 🔔 Subscribe to Google Cloud Tech → https://goo.gle/GoogleCloudTech

🎞️ How to compare documents was originally published in Google Cloud – Community on Medium, where people are continuing the conversation by highlighting and responding to this story.
Source Credit: https://medium.com/google-cloud/how-to-compare-documents-just-a-moment-ep02-1ff4d3ac5636?source=rss—-e52cf94d98af—4
