Lesson 8 · Intermediate · 15 min
Analyze a PDF document with Gemini: extraction and synthesis
Upload large PDF reports to Gemini. Ask targeted queries, mandate page citations, and eliminate ungrounded statements from your documents.
- Goal
- You will query complex PDF reports in Gemini to extract dependable insights with explicit page citation anchors.
- Skills
- Frame

Your first attempt, unaided
Upload a 30-page PDF report into Gemini and prompt it to summarize major capital investments citing exact page numbers.
Gemini natively digests multi-hundred-page PDF files without preliminary chunking. To secure dependable analysis, upload your file into a protected Google Workspace session and impose strict grounding constraints: require exact page citations and instruct the model to report missing information rather than guessing.
1Direct document ingestion: moving past naive chunking
Direct document ingestion allows teams to move past naive chunking limitations. Gemini processes complete multi-page dossiers within its unified context window without losing track of overarching business logic.
Traditional retrieval-augmented generation fragments large files into small text chunks, breaking logical relationships between distant chapters. Gemini ingests up to one million tokens, analyzing body text, tabular appendices, and technical clauses in a single pass. To ensure strict analytical fidelity, prompts must require verbatim quotations tied to verified page numbers.
Ingestion approach Technical mechanism Failure mode Recommended workplace application Traditional RAG chunking Splits files into 500-word fragments Disconnects related clauses across sections Short, isolated semantic queries Direct Gemini ingestion Full document in unified native context Slower inference if improperly scoped Master agreements, audits, annual reports Grounded extraction Strict negative fallback with page citations Model abstains if source is incomplete Regulatory compliance and contract audits 

Diagram 'Working with an attached file'Diagram generated by AI and reviewed 2Locating audit liability terms within a 40-page master agreement
Locating audit liability terms within a 40-page master agreement demonstrates how full document ingestion eliminates the risk of missing critical indemnification clauses hidden deep inside appendices.
A corporate legal counsel needs to verify facility inspection obligations across an extensive third-party vendor agreement.
Weak prompt.
What are the audit clauses in the attached PDF contract?Gemini summarizes standard inspection terms in Article 12 but overlooks specific security restrictions located in Appendix D on page 38.
Strong prompt.
Based strictly on the attached contract PDF, compile an exhaustive inventory of audit compliance terms. For each provision, cite the article heading, the exact page number, and a 20-word verbatim quotation. Note explicitly if an appendix overrides the main agreement.The difference. Enforcing page citations and appendix verification keeps the model anchored across the entire document, preventing superficial skimming.
3Extract a comparative brief from an official regulatory PDF
Extract a comparative brief from an official regulatory PDF to practice utilizing Gemini large context window to cross-reference distant sections without factual omissions.
Upload an institutional annual report or ESG audit filing. Direct Gemini to cross-reference greenhouse gas reduction commitments from early chapters against verified metrics detailed in the concluding financial schedules.
Run this prompt:
'Based strictly on the uploaded PDF report, compare the emissions reduction targets in Section 2 against the actual audited metrics in Appendix C. Provide a 3-row table with columns Indicator, Target, Actual, and Source Page.'
Self-evaluation rubric: (a) every table row references a verified page citation ; (b) zero figures are extrapolated beyond the PDF text ; (c) the synthesis compares findings across distant document chapters.
4Assuming Gemini perfectly reads low-resolution rasterized scans
Assuming Gemini perfectly reads low-resolution rasterized scans creates severe risks because image compression distorts fine numerical figures and chart callout labels.
When documents originate from legacy physical scanners, narrative text remains readable while numerical digits in graphs blur. Gemini may fabricate plausible figures based on surrounding context rather than reporting unreadable text.
Fix: manually transcribe ambiguous chart figures into your prompt or command the model to state when numbers cannot be resolved.
Rule to remember: high-resolution digital text supports direct ingestion, but degraded raster scans require human verification.
5Quiz
Three questions, instant feedback. Each option comes with an explanation.
6Proof of mastery
Upload a workplace PDF document and provide a 3-point briefing where every takeaway includes a verbatim quote and its verified page number.
This lesson counts towards the Intermediate badgeSee the four badges
Criteria
What you wrote at the start of the lesson
Going further
Examine glossary entries for context window, grounding, and RAG. The next lesson, Multimodality: reading and analyzing images, explores visual interpretation. For massive archives, explore Long context: one million tokens.
Frequently asked questions
How large a PDF can you upload into Gemini?
Gemini accommodates PDF files of hundreds of pages thanks to its million-token context window, subject to tenant file-size megabyte limits.
Can Gemini read scanned PDFs without an embedded text layer?
Yes, through native multimodal capabilities, Gemini parses scanned raster pages via integrated optical recognition within its visual encoder.
How do you enforce exact page citations?
Include this directive: 'For every factual claim or metric extracted, cite the exact source PDF page number in parentheses'.