https://github.com/harshpimpale/legalmind
A project that uses Large Language Models (LLMs) to assist users with legal inquiries, particularly based on the Indian Penal Code (IPC). LegalMind provides case summarization, user-specific legal guidance, and recommendations from past case data.
https://github.com/harshpimpale/legalmind
faiss flask-api gemini python streamlit transformers vector-embedding
Last synced: 22 days ago
JSON representation
A project that uses Large Language Models (LLMs) to assist users with legal inquiries, particularly based on the Indian Penal Code (IPC). LegalMind provides case summarization, user-specific legal guidance, and recommendations from past case data.
- Host: GitHub
- URL: https://github.com/harshpimpale/legalmind
- Owner: harshpimpale
- Created: 2024-09-19T17:56:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-26T19:11:10.000Z (over 1 year ago)
- Last Synced: 2024-11-10T20:39:19.754Z (over 1 year ago)
- Topics: faiss, flask-api, gemini, python, streamlit, transformers, vector-embedding
- Language: Python
- Homepage: https://legalmind.onrender.com/
- Size: 35.7 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readMe.md
Awesome Lists containing this project
README
# LegalMind
**LegalMind** is an AI-powered legal assistant that leverages the **Gemini Model by Google** to provide comprehensive legal support based on the **Indian Penal Code (IPC)**. This tool is designed to help users by summarizing case documents, answering queries, and offering situation-based legal assistance. LegalMind also provides relevant case suggestions from previous case data.
## Features
- **Case Summarization:** Upload your case documents and receive a concise summary based on the Indian Penal Code.
- **Legal Queries:** Ask specific questions related to your uploaded documents or general legal inquiries.
- **Situation-Based Legal Assistance:** Describe a legal situation, and LegalMind will provide you with tailored legal guidance and suggestions.
- **Case Suggestions:** Get recommendations on relevant past cases related to your query or document.
## Tech Stack
- **Language Model:** Gemini Model by Google
- **Backend:** Python, Flask
- **Frontend:** React.js
- **Database:** MongoDB for storing case data and user documents
- **Deployment:** Render (Flask API), Netlify (Frontend)
## Installation
1. Clone the repository:
```bash
git clone https://github.com/HarshP2109/LegalMind.git
cd LegalMind
```
2. Install backend dependencies:
```bash
pip install -r requirements.txt
```
3. Run the frontend:
```bash
streamlit run steam.py
```
## How to Use
1. Upload your legal documents through the interface.
2. Query the documents for summaries or legal clarifications.
3. Use the situation-based assistance feature to receive context-aware legal advice.
4. Explore relevant past cases suggested by the AI model.
## Limitations
- Focuses primarily on the Indian legal system, specifically the Indian Penal Code (IPC).
- Designed for Indian law, and may not be directly applicable to other legal systems without significant modifications.
## Future Enhancements
- Expand support to other legal domains and international legal systems.
- Add multi-language support for document queries and summaries.
- Implement large-scale testing in real legal scenarios.
## Contributing
Feel free to submit pull requests or issues if you find bugs or want to contribute to improving LegalMind.
1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Submit a pull request with detailed explanations of the changes.