This repo contains a baseline FAQ-retrieval chatbot:
- Backend: FastAPI + sentence-transformers embeddings + cosine similarity
- Frontend: simple static
index.htmlthat calls the backend
Next step (Group project): upgrade to LLM-powered RAG with private document ingestion + access control + cloud deployment.
conda create -n chatbot-local python=3.12 -y
conda activate chatbot-local
cd backend
pip install -r requirements.txt
cd backend
python embedding_builder.py
cd backend
python -m uvicorn main:app --host 127.0.0.1 --port 8000 --reload
Open:
cd frontend
python -m http.server 5500
Open:
- If a new terminal opens in (base), run:
conda activate chatbot-local
- If you see ModuleNotFoundError, reinstall:
pip install -r backend/requirements.txt
- If you changed faqs.json, rebuild embeddings:
python backend/embedding_builder.py
Generated files are not meant to be committed:
backend/index.npybackend/meta.json
Make sure you have a .gitignore so you don’t upload generated files + cache:
C:\Git\cloud-rag-chatbot\.gitignore
__pycache__/
*.pyc
.env
.vscode/
backend/index.npy
backend/meta.json