AI-Powered Legal Assistant for Nepal
Making legal knowledge and government navigation accessible to every Nepali citizen.
Laws are easily accessible but not easily understandable.
VIDHI.AI is a conversational AI that lets anyone ask legal questions in plain language and get accurate, cited answers from 35+ Nepali laws and acts and also custom navigation for Pokhara valley.
| Feature | Description |
|---|---|
| 1. Natural Language Q&A | Ask in English or Nepali, get clear answers |
| 2. 35+ Legal Documents | Constitution, Civil Code, Criminal Code, and more |
| 3. Source Citations | Every answer backed by actual legal text |
| 4. Procedure Navigation | Step-by-step guidance for government services |
| 5. Voice Support | Speak your question, hear the answer |
| 6. Fast Retrieval | FAISS-powered vector search in milliseconds |
| Layer | Technology |
|---|---|
| LLM | Meta LLaMA 3.1 8B (via HuggingFace) |
| Embeddings | SentenceTransformers (MiniLM-L6) |
| Vector DB | FAISS |
| Backend | FastAPI |
| Frontend | React 18 + Vite / Streamlit |
| Voice | Edge TTS + Google Speech Recognition |
nyaya-exe/
├── streamlit/ # Alternative UI
├── frontend/ # React frontend
├── backend/ # FastAPI server
├── scripts/ # Core RAG logic
│ ├── embedding.py # Text embeddings
│ ├── vector.py # FAISS operations
│ ├── llm_wrapper.py # LLaMA integration
│ └── voice.py # TTS/STT
├── database/ # Vector index
└── dataset/ # Legal documents
- Full Nepali language support
- Analytics dashboard
- User authentication
- Mobile app (React Native)
- Integration with Nepal Law Commission
- Real-time document updates
- Lawyer consultation matching
- Document generation (legal templates)
- Multi-jurisdictional support
|
Milan Bastola Full Stack Developer GitHub |
Prasanna Pahari ML/AI Engineer GitHub |
Anish Karki ML/AI Engineer GitHub |
- Nepal Law Commission - For making legal documents publicly available
- Meta AI - For the open-source LLaMA 3.1 model
- HuggingFace - For model hosting and inference API
- FAISS Team - For the efficient vector similarity search library
- Sentence Transformers - For pre-trained embedding models
- Streamlit - For the amazing data app framework
- Open Source Community - For all the libraries that made this possible
Justice is everyone's right. (न्याय सबैको हक हो)
Made with ❤️ and Passion

