How They Use AI  |  Newest

<< Home  |  Work

0% hallucinations when extracting complex scanned textbook tables

AreaWork
AI usedGemini 1.5 Pro
Sourcer/notebooklm
Posted2026-09-07

The move

Pre-process massive scanned PDFs into 15 to 20 page Markdown chunks using Gemini at 0.0 temperature before loading into NotebookLM.
When this worksWhen it doesn't
NotebookLM hallucinates numbers or mashes table rows when reading large scanned PDF files over 15 to 20 pages.The source file is already clean digital text rather than flat image scans of tables.

Key details

Prompt for your AI

You are an OCR expert. Attached are scanned pages from a textbook. Extract all text and numbers with perfect accuracy and convert them into clean Markdown format. Conditions: 1. Use ## and ### for headings. 2. Convert all images of tables perfectly into Markdown table format. 3. Keep the exact order of the paragraphs. 4. Do not add any of your own words, introductions, or conclusions. Output the extracted text only. Execution rules: - Process batches of 15 to 20 pages max to prevent hitting output limits of ~8,000 tokens per reply. - Run with Temperature set to 0.0 to eliminate creativity and force exact copy of numbers without hallucinations. - Set safety settings to Block none. - Ensure complex tables are converted into Markdown table format without skipping lines or altering financial rows. - Paste converted output into NotebookLM via Add Source -> Pasted Text. Before you give me the final result, check with me: - PDF is chopped into 15 to 20 pages max. - Temperature is set to 0.0 and safety settings are set to Block none. - Output contains no added introductions or conclusions. - Tables are converted to standard Markdown format before pasting to NotebookLM.

What happened

Uploading a massive scanned textbook directly to NotebookLM caused mashed table data and wild hallucinations. Splitting the PDF into 15 to 20 page chunks and converting them to Markdown in Google AI Studio at 0.0 temperature eliminated errors completely.

Give it to your agent

Read https://howtheyuse.ai/p/0-hallucinations-on-complex-textbook-data.md and help me do this.

Sources



Last updated November 26, 2026.