This project started as a way to help my brother study for his Financial Accounting course. Instead of searching through dozens of slides for every doubt, he can ask a question in plain language and get an answer grounded in his own course notes.
It is a small RAG (Retrieval-Augmented Generation) system with a web chatbot: the most relevant passages from the notes are retrieved, and an AI model answers using only those passages, citing the source PDF and page so every answer can be checked against the original material.
documents/*.txt ──► rag_creator.py ──► chroma_db/ (vector database)
split into chunks,
compute embeddings
│
question ──► chatbot.py ──► top 4 chunks ───┘
│
└──► AI API (question + chunks) ──► answer with sources[TEMA: Financial Accounting, FONTE: 4. Inventories.pdf, página 3] # Slide title - content...