Generative AI · Intermediate level

Intermediate level · Module 7 of 10 · 10 guided hours

Document Processing and Chunking

Preparing documents for retrieval: loading PDFs, Word and web documents, cleaning, chunking strategies, metadata and versioning, and safe handling of uploaded files.

Learning objectives

  • Load and clean documents from common formats
  • Choose and evaluate chunking strategies
  • Handle documents and uploads safely

Topics

  • loading PDF, DOCX, HTML and text
  • cleaning and normalising text
  • chunking by size, structure and meaning
  • chunk overlap and metadata
  • versioning and updates
  • safe uploads and access levels

Lessons

  1. Lesson 1 Loading and Cleaning Documents

    Learners extract text from PDFs, Word documents and web pages, remove headers, footers and noise, and keep structure such as headings and tables.

    text extractionscanned vs digital PDFsheaders and footerstablesstructure preservation

  2. Lesson 2 Chunking Strategies

    Learners split documents by fixed size, by structure (headings and sections) and by meaning, with overlap, and measure the effect on retrieval.

    chunk sizeoverlapstructure-based chunkingsemantic chunkingchunk metadata

  3. Lesson 3 Versioning, Updates and Safe Uploads

    Learners handle document updates without stale answers, and design safe handling for uploaded files: type and size checks, access levels and privacy.

    document versionsre-indexingstale contentupload validationaccess levels

Practical activity

Build the project's ingestion pipeline: loaders, cleaning, a measured chunking choice, metadata with versions and access levels, and safe upload handling.

Expected outcomes

  • Reliable document processing for RAG
  • Safe document handling

Assessment

Ingestion pipeline (60%) and chunking comparison (40%).

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.