NyayNidhi AI is an AI-powered legal chatbot designed to help individuals understand India's criminal laws, particularly the Bhartiya Nyay Sanhita (BNS). This project is part of my Master's research, aiming to bridge the legal knowledge gap by providing instant access to relevant legal sections, punishments, and advice.
- Demo Video: Click here
- Instant Legal Information: Describe a criminal act and get the relevant BNS sections, punishments, and legal advice.
- Safety Guidance: Provides essential safety tips, especially for women.
- Crime Insights: Offers real-time updates and statistics on criminal cases in India.
- Helpline Support: Connects users with the National Helpline for legal assistance.
- Backend: FastAPI + LangChain (for AI Agent)
- Vector Database: Qdrant
- LLM: Llama 3.1 via Groq API
- UI: Streamlit
- Data Processing: ETL scripts for legal document ingestion
- Performance Optimization: Implemented Semantic Cache for faster responses
-
Clone the Repository
git clone https://github.com/karan842/nyaynidhi.git
-
Install Dependencies
pip install -r requirements.txt
-
Set Up Environment Variables You need
Qdrant,Groq, andGeminiAPI Keys -
Run the Application
streamlit run app.py
- Enhanced UI/UX for a seamless user experience.
- Mobile App Version for easy access.
- Multi-Language Support to cater to a wider audience.
- User Authentication for personalized legal assistance.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.