Ingestion: parsing and cleaning
Your RAG bot keeps quoting the cookie banner. Another answer mixes last year's price list with this year's, and a table of plan limits came out as one long line of numbers. None of that is the model's fault. Whatever you feed the index is all the model will ever see, so ingestion is where most RAG quality is won or lost.
In this lesson you'll learn to
- Extract the main content from HTML pages and drop navigation, banners, footers and other boilerplate.
- Keep tables, lists and headings readable after parsing, for example by converting them to Markdown.
- Handle messy sources by removing duplicates, choosing the current version and skipping content that shouldn't be searchable.
- Design an ingestion pipeline that stores metadata with every document and re-syncs changes, including deletions.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.