Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AI Agent who advices your legal queries with the help of BNS, Juvenile, and many other sections. Helps user in legal matters, assist legal actions to take and provide nearest police stations and hospitals.

Notifications You must be signed in to change notification settings

karan842/nyaynidhi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NyayNidhi AI ⚖️ - AI-Powered Legal Chatbot for Bhartiya Nyay Sanhita

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.

🔗 Try NyayNidhi AI

🛠 Features

  • 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.

💻 Tech Stack

  • 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

🚀 Installation

  1. Clone the Repository

    git clone https://github.com/karan842/nyaynidhi.git
  2. Install Dependencies

    pip install -r requirements.txt
  3. Set Up Environment Variables You need Qdrant, Groq, and Gemini API Keys

  4. Run the Application

    streamlit run app.py

📌 Future Plans

  • 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.

🤝 Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

📜 License

This project is licensed under the MIT License.

Connect Me

About

AI Agent who advices your legal queries with the help of BNS, Juvenile, and many other sections. Helps user in legal matters, assist legal actions to take and provide nearest police stations and hospitals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages