Parsing documents and OCR
Turn PDFs, scans, slides and Word files into clean, ordered text and intact tables for retrieval, choosing between text extraction, OCR and layout-aware parsing.
Intermediate 2 · RAG builderabout 4 hours7 sections
Quick answer
Document parsing turns PDFs, scans and slides into clean text and tables for AI. Use text extraction for digital PDFs, OCR for scans and layout-aware tools for complex pages.
Why it matters
Many RAG failures start with parsing, not retrieval: columns jumbled, tables flattened into nonsense, scanned pages empty. Good parsing is often the cheapest big improvement in a RAG system and the first thing to check when answers go wrong.
Sign up free to read the whole lesson
The rest of this lesson: 7 parts, video lessons, the best course, practice and a quick check. It is free, takes a few seconds and needs no card.
Accounts are for learners aged 18 and over. Under 18? The quick answer and the first part of every lesson stay open: browse lessons by topic.
Lessons on Generative AI & LLM Engineer0 of 65 done
- 1What AI, machine learning and a language model are
- 2Use a chat assistant for a real task and check the answer
- 3Use AI safely at work
- 4Set up Python and run your first file
- 5Variables, loops and functions in Python
- 6Write your own functions
- 7Lists and dictionaries
- 8Files and errors
- 9The terminal and Git
- 10Packages and virtual environments
- 11Call a web API and read JSON
- 12Tables with pandas
- 13Call an LLM API from code
- 14System prompts and prompt design
- 15Tokens and the context window
- 16How a model picks its next word: temperature, top-p and top-k
- 17Get structured JSON output
- 18Errors, retries and cost
- 19How a chat model is made: pre-training, SFT and preference tuning
- 20AI in Indian languages: tokens, quality gaps and what to use
- 21Embeddings
- 22Chunk documents for retrieval
- 23Vector search
- 24Build a RAG app
- 25Check whether retrieval works
- 26Parsing documents and OCR
- 27Metadata that helps retrieval
- 28Hybrid search, reranking and filters
- 29Query rewriting, HyDE and parent-child chunks
- 30Grounding, citations and refusing to guess
- 31Long context or RAG
- 32Tool calling
- 33The agent loop
- 34Logs and traces for agents
- 35How agents fail
- 36Long documents without vectors
- 37Test sets and evals
- 38LLM judges and their limits
- 39Choosing a model: benchmarks, leaderboards and your own tests
- 40Scoring open-ended answers: exact checks, similarity and side-by-side comparison
- 41Catching hallucinations: why models make things up and how to detect it
- 42Regression tests for prompts
- 43Defend against prompt injection
- 44Reasoning models and test-time compute: when to let the model think longer
- 45Data pipelines for AI
- 46Permission-aware RAG
- 47Graph RAG
- 48Multimodal RAG
- 49How fine-tuning works: data, training and what can go wrong
- 50LoRA, QLoRA and the GPU memory maths
- 51Fine-tuning in practice: tools, settings and reading the loss curve
- 52Synthetic data and distillation: training with model-made data
- 53Building a training dataset: quality, coverage and quantity
- 54Deploy and monitor an LLM app
- 55Caching and speed
- 56Inside LLM inference: prefill, decode and the KV cache
- 57Grow an AI app in layers: context, guardrails, routing, caching and agents
- 58Advanced harness engineering
- 59Harnesses for long-running agents
- 60Cost control
- 61Security and privacy
- 62Prompting, RAG or fine-tuning
- 63Design an AI system
- 64Quality, cost and speed trade-offs
- 65The design interview
Related
On the roadmap: Generative AI & LLM Engineer
DataIntermediate 2: RAG builderVideo lessonsDocument parsingOCRLayout analysisChunking