{"id":21962383,"url":"https://github.com/harshpimpale/legalmind","last_synced_at":"2026-05-15T22:02:00.639Z","repository":{"id":258616804,"uuid":"860039273","full_name":"harshpimpale/LegalMind","owner":"harshpimpale","description":"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.","archived":false,"fork":false,"pushed_at":"2024-10-26T19:11:10.000Z","size":37467,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-10T20:39:19.754Z","etag":null,"topics":["faiss","flask-api","gemini","python","streamlit","transformers","vector-embedding"],"latest_commit_sha":null,"homepage":"https://legalmind.onrender.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harshpimpale.png","metadata":{"files":{"readme":"readMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-19T17:56:55.000Z","updated_at":"2024-11-08T14:06:01.000Z","dependencies_parsed_at":"2024-11-10T20:49:24.239Z","dependency_job_id":null,"html_url":"https://github.com/harshpimpale/LegalMind","commit_stats":null,"previous_names":["harshp2109/legalmind","harshpimpale/legalmind"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshpimpale%2FLegalMind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshpimpale%2FLegalMind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshpimpale%2FLegalMind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshpimpale%2FLegalMind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harshpimpale","download_url":"https://codeload.github.com/harshpimpale/LegalMind/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245020314,"owners_count":20548156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["faiss","flask-api","gemini","python","streamlit","transformers","vector-embedding"],"created_at":"2024-11-29T10:38:59.080Z","updated_at":"2025-10-19T09:27:15.126Z","avatar_url":"https://github.com/harshpimpale.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LegalMind\n\n**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.\n\n## Features\n\n- **Case Summarization:** Upload your case documents and receive a concise summary based on the Indian Penal Code.\n- **Legal Queries:** Ask specific questions related to your uploaded documents or general legal inquiries.\n- **Situation-Based Legal Assistance:** Describe a legal situation, and LegalMind will provide you with tailored legal guidance and suggestions.\n- **Case Suggestions:** Get recommendations on relevant past cases related to your query or document.\n\n## Tech Stack\n\n- **Language Model:** Gemini Model by Google\n- **Backend:** Python, Flask\n- **Frontend:** React.js\n- **Database:** MongoDB for storing case data and user documents\n- **Deployment:** Render (Flask API), Netlify (Frontend)\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/HarshP2109/LegalMind.git\n   cd LegalMind\n   ```\n\n2. Install backend dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n\u003c!-- 3. Install frontend dependencies:\n   ```bash\n   cd frontend\n   npm install\n   ```\n\n4. Run the Flask API:\n   ```bash\n   flask run\n   ```\n\n5. Run the frontend:\n   ```bash\n   cd frontend\n   npm start\n   ``` --\u003e\n3. Run the frontend:\n   ```bash\n   streamlit run steam.py\n   ```\n\n## How to Use\n\n1. Upload your legal documents through the interface.\n2. Query the documents for summaries or legal clarifications.\n3. Use the situation-based assistance feature to receive context-aware legal advice.\n4. Explore relevant past cases suggested by the AI model.\n\n## Limitations\n\n- Focuses primarily on the Indian legal system, specifically the Indian Penal Code (IPC).\n- Designed for Indian law, and may not be directly applicable to other legal systems without significant modifications.\n\n## Future Enhancements\n\n- Expand support to other legal domains and international legal systems.\n- Add multi-language support for document queries and summaries.\n- Implement large-scale testing in real legal scenarios.\n\n## Contributing\n\nFeel free to submit pull requests or issues if you find bugs or want to contribute to improving LegalMind.\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix.\n3. Submit a pull request with detailed explanations of the changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshpimpale%2Flegalmind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshpimpale%2Flegalmind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshpimpale%2Flegalmind/lists"}