This repository implements a Retrieval‑Augmented Generation (RAG) chatbot in Python, following the step‑by‑step construction guide from python-rag/BUILD-A-RAG-PYTHON.md.
It will attempt to use comunity resources and write ups that are stored in the repo. Note: I do not own them. The context documentation there is for learning purposes. Originals where made public by the authors and are available in their web sites and/or git repos. Uncited ones were made by me inspired by the testing context/knowledge.
src/– application modulestests/– unit testsdata/raw/– raw scraped HTML filesdata/processed/– JSON documents (text,html, etc.)eval/golden.py– golden questions used for testingscripts/– helper scripts (scrape, process, run)
python -m venv .venv
source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
pip install -r requirements.txtStart JupyterLab for interactive exploration:
jupyter labRun the Streamlit UI (after scraping and building the index):
streamlit run app.pyFollow the phases described in the guide to scrape, chunk, embed, retrieve and generate.