CoolFace
Apppublic

Omthakur1394/shopease-self-rag

sourceHugging Faceupdated 13d agoView on Hugging Face
1likes
App README

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

text
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