How thasvithu/educational-rag-research works
This repository is an educational RAG research project, not a deployed RAG application. Its implemented workflow explores source PDFs, cleans and prepares a traceable corpus, validates its integrity, and provides notebooks comparing five chunking strategies plus an embedding introduction. The README also describes RAG and evaluation technologies, but marks those work-plan stages as upcoming; they are therefore not represented as implemented runtime components. Edges reflect excerpts or README statements, not inspection of the notebooks' internal code.
Main entry points: clean_pdfs.py PDF Cleaner · prepare_texts.py Text Preparation · validate_corpus.py Corpus Validator · 01_fixed_size_chunking.ipynb Fixed-Size
Components 13
PDF Ingestion
- PDF Explorer
01_Load_pdfs/explore_pdfs.py
Corpus Preparation
- PDF Cleaner
02_data_cleaning/clean_pdfs.py - Text Preparation
02_data_cleaning/prepare_texts.py - Corpus Validator
02_data_cleaning/validate_corpus.py - Prepared Corpus
Chunking Experiments
- Fixed-Size
03_chuncking_implementation/01_fixed_size_chunking.ipynb - Sliding Window
03_chuncking_implementation/02_sliding_window_chunking.ipynb - Structure-Aware
03_chuncking_implementation/03_structure_aware_chunking.ipynb - Semantic Chunking
03_chuncking_implementation/04_semantic_chunking.ipynb - Late Chunking
03_chuncking_implementation/05_late_chunking.ipynb
Embedding Study
- Embedding Introduction
04_embedding/01_what_is_Embedding.ipynb
Other components
- Researcher
- Source PDFs
Connections 16
- Researcher → Source PDFs: collects
README.md - Researcher → PDF Explorer: runs
README.md - Source PDFs → PDF Explorer: loads and analyzes
README.md - Researcher → PDF Cleaner: runs
- PDF Cleaner → Prepared Corpus: builds
02_data_cleaning/clean_pdfs.py - PDF Cleaner → Text Preparation: precedes
02_data_cleaning/prepare_texts.py - Text Preparation → Prepared Corpus: prepares
02_data_cleaning/prepare_texts.py - Text Preparation → PDF Cleaner: imports helpers
02_data_cleaning/prepare_texts.py - Researcher → Corpus Validator: runs
- Corpus Validator → PDF Cleaner: uses helpers
02_data_cleaning/validate_corpus.py - Prepared Corpus → Fixed-Size: feeds experiments
README.md - Prepared Corpus → Sliding Window: feeds experiments
README.md - Prepared Corpus → Structure-Aware: feeds experiments
README.md - Prepared Corpus → Semantic Chunking: feeds experiments
README.md - Prepared Corpus → Late Chunking: feeds experiments
README.md - Fixed-Size → Embedding Introduction: chunks become vectors