Skip to main content
AmigoFish

How to compare documents 🍿 Just a moment #02

From Google Cloud Tech Β· Β· 1 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.

If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.

Watch on YouTube

Not rated yet

Description

πŸ”— Document understanding β†’ https://g.dev/cloud/document-understanding πŸ”— Gemini models β†’ https://g.dev/cloud/gemini-models

⚑ How to compare documents 🍿 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.

🍡 Grab your tea, coffee, or matcha… It only takes a moment!

Prompt template used in the video example: [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]

πŸ“Œ Follow Laurent online: πŸ”— LinkedIn β†’ https://goo.gle/laurent-picard-linkedin πŸ”— X β†’ https://goo.gle/laurent-picard-x

πŸ”” Subscribe to Google Cloud Tech β†’ https://goo.gle/GoogleCloudTech

#GoogleGemini #GenerativeAI #GoogleCloud #DocumentUnderstanding #NativeMultimodality #JustAMoment #TechIn2Minutes

Speaker: Laurent Picard Products mentioned: Gemini

Back to Google Cloud Tech Β· Report a problem