|
|
---
|
|
|
title: YourHonor
|
|
|
app_file: app.py
|
|
|
sdk: gradio
|
|
|
sdk_version: 4.44.0
|
|
|
python_version: 3.12
|
|
|
---
|
|
|
# ๐ฎ๐ณ Constitution of India RAG Chatbot
|
|
|
|
|
|
Production-grade Q&A over full Constitution text using **Phi-3-mini + LlamaIndex + ChromaDB**.
|
|
|
|
|
|
## Features
|
|
|
- โ
Semantic search (handles typos: "Artical 14" โ Article 14)
|
|
|
- โ
Chat history (auto-truncated)
|
|
|
- โ
Citations & hallucination-proof
|
|
|
- โ
Edge cases: "Not found" responses
|
|
|
- โ
HF Spaces CPU-Basic (~4GB RAM)
|
|
|
|
|
|
## Deploy HF Spaces
|
|
|
1. Push all files (incl. `chroma_db/`)
|
|
|
2. Create Gradio Space โ Auto-builds!
|
|
|
|
|
|
**Try:** "Article 21 fundamental right?" โ Perfect answer + context!
|
|
|
|