A simple Python + CLI based RAG project that answers company policy questions using semantic search and an offline open-source AI model. Perfect to showcase on GitHub, Resume, and Internship submissions.
- Ask questions about company policies
- Uses Refund, Shipping & Cancellation documents
- Answers only from documents (no guessing, no hallucination)
- Works fully offline (no API keys, no billing)
- Built-in evaluation script to test accuracy
- Python
- LangChain
- Chroma DB
- Sentence Transformers (MiniLM)
- FLAN-T5 (Open-source LLM)
git clone https://github.com/your-username/policybot-rag.git
cd policybot-rag
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
Put your policy files inside the data/ folder.
python src/ingest.py
python src/rag.py
Ask things like:
can i cancel my order after shipping?
policybot-rag/ ├─ data/ └─ src/ ├─ ingest.py` ├─ rag.py ├─ prompts.py └─ evaluate.py
Run:
python src/evaluate.py
You will see accuracy scores, safe refusals, and no hallucination.
- Shows real RAG architecture
- Shows prompt engineering and evaluation
- Shows hallucination control
- Looks clean on GitHub and resumes
- Add reranking
- Add auto evaluation
- Add citations per answer