Someone wanted to learn this too, so Grasp built them a personal learning path.
You can keep exploring this one or create your own
Python AST for RAG Chunking
Module 1
RAG and Structure-Aware Code Chunking
Module 2
Python Modules, Imports, and Lexical Scope
Module 3
Parsing Python into an Abstract Syntax Tree
Module 4
Traversing ASTs with Context
Module 5
Recovering Faithful Source Spans
Module 6
Designing a Baseline Python Chunker
Module 7
Size-Aware Structural Splitting and Context
Module 8
Dependency and Semantic Metadata
Module 9
Repository Ingestion and Robust Processing
Module 10
Retrieval Integration and Chunker Evaluation
Module 11