Omthakur1394/shopease-self-rag
1
ShopEase Self-Aware RAG Agent
An autonomous, self-correcting RAG (Retrieval-Augmented Generation) customer support agent built for ShopEase. This system retrieves store policy documents, generates highly accurate answers, reflects on its own output, and rewrites queries if the initial response fails compliance checks.
๐ Tech Stack
- Core Framework: LangGraph & LangChain
- Backend API: FastAPI
- Vector Database: ChromaDB (Local SQLite)
- Package Manager:
uv - Deployment Environment: Hugging Face Spaces (Docker)
- Python Version: 3.12
๐ Project Structure
shopease-self-rag/
โโโ data/ # Raw ShopEase policy PDFs
โโโ chroma_db/ # Pre-computed vector embeddings
โโโ src/
โ โโโ core/ # Configuration and environment setup
โ โโโ graph/ # LangGraph state, nodes, and builder logic
โ โโโ retriever/ # Ingestion and semantic search scripts
โ โโโ cli.py # Terminal-based testing interface
โ โโโ main.py # FastAPI backend application
โโโ Dockerfile # Hugging Face deployment configuration
โโโ .dockerignore # Docker exclusion rules (allows chroma_db)
โโโ .gitignore # Git exclusion rules (allows chroma_db)
โโโ requirements.txt # Project dependencies 