Awais234/las-cms-bot
0
LAS CMS Bot
RAG chatbot over LAS Case Management System data (3,800+ cases).
Stack
- Backend: FastAPI (Python 3.11)
- Vector store: ChromaDB with
all-MiniLM-L6-v2embeddings - LLM: OpenAI
gpt-4o-mini - Auth: SQLite + bcrypt + JWT cookies
- Hosting: Hugging Face Spaces (Docker SDK)
Deploy on Hugging Face
- Create a new Space at https://huggingface.co/new-space (Docker SDK)
- Push the
CMSBot/app/folder as the Space root - Set Secrets in Settings → Variables and secrets:
- Before first run, copy
cms_cases_rag.jsonlintodata/folder - The Space will auto-deploy. Login as
admin/ your password.
Local dev
pip install -r requirements.txt
cp .env.example .env # add your OpenAI key
mkdir -p data
# Copy cms_cases_rag.jsonl to data/
python ingest.py
python manage_users.py add admin "Admin" --admin
uvicorn backend.main:app --reloadUser management
python manage_users.py add client1 "Client Name"
python manage_users.py list
python manage_users.py delete client1Folder structure
CMSBot/
├── app/
│ ├── backend/ # Python: auth, config, chatbot, main
│ ├── frontend/ # HTML: login, chat UI, admin
│ ├── data/ # RAG data + ChromaDB (runtime)
│ ├── Dockerfile
│ ├── ingest.py # Load JSONL to ChromaDB
│ ├── manage_users.py
│ └── requirements.txt
└── README.md