JusticeMitra is an AI-powered legal assistant designed to help women in India understand their legal rights and protections. Using a Retrieval-Augmented Generation (RAG) approach, the system processes legal documents and provides accurate, context-aware responses to user queries.
- 📖 Legal Query Resolution – Get detailed responses based on Indian women's rights laws.
- 🔍 Intelligent Search – Uses FAISS for efficient document retrieval.
- 🧠 AI-Powered Responses – Utilizes ChatGroq for generating legal answers.
- 📂 PDF Document Processing – Parses and indexes legal PDFs for reference.
- 🌐 User-Friendly Web App – Built with Streamlit for an intuitive interface.
- 📜 Emergency Contacts – Displays helpline numbers for immediate assistance.
- 📌 Search History Sidebar – Allows users to revisit previous queries.
- Upload and Index Legal Documents – JusticeMitra processes women's rights-related PDFs and builds a searchable FAISS index.
- User Query Input – Users type their legal questions in the web app.
- Document Retrieval – The system fetches relevant legal text from the indexed documents.
- AI Response Generation – ChatGroq processes the retrieved context and provides a well-structured response.
- Display Results – The app presents the response along with emergency legal contacts.
- Languages: Python
- Frameworks: Streamlit, LangChain, FAISS
- AI Models: HuggingFace Embeddings, ChatGroq
- Cloud Services: Google Cloud / AWS (Optional)
- APIs: Groq API
- Databases/Storage: Local Storage, Google Drive / AWS S3 (Optional)
- Tools: Git, VS Code
-
Clone the Repository:
git clone https://github.com/nanmodi/JusticeMitra.git cd JusticeMitra -
Create a Virtual Environment (Optional but Recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
-
Set Up Environment Variables:
- Create a
.envfile in the project root and add:
GROQ_API_KEY=your_groq_api_key_here
- Create a
-
Run the Application:
streamlit run app.py
- Open the JusticeMitra web app.
- Enter your legal query in the text box.
- The AI fetches relevant legal information and provides a response.
- View emergency legal contacts for further assistance.
- Access previous searches from the sidebar.
- Ensuring accurate legal information retrieval.
- Handling large PDF documents efficiently.
- Optimizing response relevance using RAG.
- Improving user experience with a modern UI.
- 📌 Multilingual Support for wider accessibility.
- 📊 Legal Case Summaries using advanced NLP.
- 🔗 Integration with Legal Experts for personalized guidance.
- ☁️ Cloud-Based Storage for real-time document updates.
This project is licensed under the MIT License.
For questions or collaborations, reach out via GitHub Issues.
