Building with AILesson 40 of 80

Module 4 · Retrieval and the knowledge problem

Ingestion: PDFs, tables and scans, where most retrieval actually fails

In this lesson

  • 10 min read
  • 9 reading sections
  • Knowledge check
  • Lesson 9 of 11 in this chapter

This chapter’s goalBuild a retrieval pipeline from raw documents to a ranked set of chunks (embed, index, fuse with keyword search, rerank, filter by permission) measure its recall on a gold set of your own questions, and say from cost and quality numbers whether a given corpus should be retrieved or simply placed in the context window.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Twenty chunks read by eye, before and afterWhat the first pipeline storedPro 50 100 Yes 24hConfidential: Internal Use OnlyThis does not apply to part-time staffPage 4 of 12The limit is 500 per monthWhat the same content should sayPlan: Pro. Users: 50. Projects: 100. SSO: Yes.Support response: 24h.Dropped: a line appearing on more than halfthe pages at the same positionLeave policy > Part-time staff: This does notapply to part-time staffDropped with the running headerAPI rate limits > Enterprise plan: The limitis 500 per monthNone of the fixes on the right needed a different embedding model. Read twenty chunks at random afterevery parser change: it takes ten minutes and it catches what no metric does.
None of the fixes on the right needed a different embedding model. Read twenty chunks at random after every parser change: it takes ten minutes and it catches what no metric does.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 10Free · no account needed
Lesson steps

Where the failure is

Teams spend weeks comparing embedding models while the text in their index is broken. Before touching a model, pull twenty chunks at random from the index and read them. If a chunk starts mid-sentence, contains “Page 4 of 12 Confidential” in the middle, or is a run of numbers with no indication of what they measure, no retrieval technique downstream will recover what was lost here. This lesson is about the unglamorous work that decides everything.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Ingestion: PDFs, tables and scans, where most retrieval actually fails’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/ingestion-pdfs-tables-and-scans (Accessed: 29 November 2026).