RAG & Retrieval·Question 82 of 100Quick-fire

How do you do RAG over tables, PDFs, and images rather than clean text?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Real documents are messy, so ingestion quality dominates. Parse structure first: use layout-aware extraction for PDFs, preserve tables as structured rows rather than mangled text, and either OCR or use a vision model for scanned pages and figures. For multimodal RAG you can embed images and text into a shared space, or generate text descriptions of images and tables and retrieve over those, then pass the original when needed. Garbage extraction produces garbage retrieval regardless of the model, so invest in the parsing pipeline and evaluate retrieval on the hard document types specifically. Mature productized multimodal RAG is still emerging, so keep the pipeline simple and measured.

Full worked answer

Real documents are messy, so ingestion quality dominates. Parse structure first: use layout-aware extraction for PDFs, preserve tables as structured rows rather than mangled text, and either OCR or use a vision model for scanned pages and figures. For multimodal RAG you can embed images and text into a shared space, or generate text descriptions of images and tables and retrieve over those, then pass the original when needed. Garbage extraction produces garbage retrieval regardless of the model, so invest in the parsing pipeline and evaluate retrieval on the hard document types specifically. Mature productized multimodal RAG is still emerging, so keep the pipeline simple and measured.

Learn more: Multimodal topic

What a good answer covers

  • Real documents are messy, so ingestion quality dominates
  • Parse structure first: use layout-aware extraction for PDFs, preserve tables as structured rows rather…
  • For multimodal RAG you can embed images and text into a shared space, or generate text descriptions of…
  • Garbage extraction produces garbage retrieval regardless of the model, so invest in the parsing pipeline…
  • Mature productized multimodal RAG is still emerging, so keep the pipeline simple and measured

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep