Skip to content

GitWitAnish/Vidhi.ai

Repository files navigation

VIDHI>AI

VIDHI.AI

AI-Powered Legal Assistant for Nepal
Making legal knowledge and government navigation accessible to every Nepali citizen.

Python LLaMA FAISS React FastAPI


Problem Statement

Laws are easily accessible but not easily understandable.


Our Solution

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.

How It Works

How it works


Key Features

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

Tech Stack

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


Architecture

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

Future Roadmap

  • 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

Team

Milan Bastola
Full Stack Developer
GitHub
Prasanna Pahari
ML/AI Engineer
GitHub
Anish Karki
ML/AI Engineer
GitHub

Acknowledgments

  • 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

Resources & References


Justice is everyone's right. (न्याय सबैको हक हो)

Made with ❤️ and Passion

About

Vidhi.ai is an intelligent legal assistant and navigator built to make legal knowledge and government processes accessible for everyone in Nepal with well-cited answers grounded in authentic Nepali laws and acts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors