{"id":24716925,"url":"https://github.com/kamaljerome/ailegalassistant","last_synced_at":"2026-04-05T20:36:04.834Z","repository":{"id":261550909,"uuid":"883218494","full_name":"KamalJerome/AILegalAssistant","owner":"KamalJerome","description":"AI assistant to help with legal queries, with a RAG model trained on the Indian Penal Code, real case documents, to provide accurate, in-depth, and effective solutions for court cases and lawsuits. With built-in legal document generator and judgment prediction models, this tool shows the potential of AI and deep learning in the legal atmosphere.","archived":false,"fork":false,"pushed_at":"2024-11-08T01:44:04.000Z","size":1476,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T09:14:35.666Z","etag":null,"topics":["chatbot","generative-ai","legal","openai","python","rag","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KamalJerome.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-11-04T15:24:33.000Z","updated_at":"2025-01-16T16:49:38.000Z","dependencies_parsed_at":"2024-11-07T06:35:20.264Z","dependency_job_id":"03909e40-1278-4c30-83d5-8dbde30957cd","html_url":"https://github.com/KamalJerome/AILegalAssistant","commit_stats":null,"previous_names":["kamaljerome/ailegalassistant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KamalJerome%2FAILegalAssistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KamalJerome%2FAILegalAssistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KamalJerome%2FAILegalAssistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KamalJerome%2FAILegalAssistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KamalJerome","download_url":"https://codeload.github.com/KamalJerome/AILegalAssistant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244932994,"owners_count":20534270,"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":["chatbot","generative-ai","legal","openai","python","rag","streamlit"],"created_at":"2025-01-27T09:14:37.421Z","updated_at":"2025-12-30T23:50:35.273Z","avatar_url":"https://github.com/KamalJerome.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚖️ AI Legal Assistant ⚖️\n\nan AI assistant to help with legal queries, with an RAG model trained on the Indian Penal Code, and real case documents, to provide accurate, in-depth, and effective solutions for court cases and lawsuits. With a built-in legal document generator and judgment prediction models, this tool shows the potential of AI and deep learning in the legal atmosphere.\n\n## Key Features\n\n- ✅ **IPC-verified Answers**: Provides context-aware responses by referencing the prompt according to the Indian Penal Code.\n- 📜 **Legal Doc Generator**: Generates legal documents from a single prompt, in a ready-to-use Word `.docx` format.\n- 🔍 **Judgment Prediction**: Uses a high-level Bi-GRU neural network model, trained on cases from 1947 to 2020, to accurately predict a court verdict.\n- 🧩 **Interactive Console**: Simple and interactive user interface powered by Streamlit for ease of use.\n\n## Technologies Used\n\n- 🤖 Mistral AI's `Mixtral-8x22B-Instruct-v0.1` for natural language understanding and response generation.\n- ⚙️ `InLegalBERT` for Indian Penal Code text embeddings.\n- 🧩 **Streamlit** for the front-end interface.\n- 📅 **Redis** for quick, indexed access to knowledge base entries.\n- 🐍 **Python** for core application logic.\n\n## Getting Started\n\nAI Legal Assistant has been deployed here: https://ailegalassistant.streamlit.app/\n\n**HOW TO USE:**\n\n1. Upload Case Files: Upload your case files to get a predicted judgment backed by solid legal rationale.\n2. Ask Legal Questions: Ask any legal query to AI Legal Assistant's Chat Bot.\n3. Create Legal Documents: AI Legal Assistant can generate content for legal documents, extracting information from your prompts.\n\n## Demo Video\n[![Watch the video](https://img.youtube.com/vi/TFs_JSMsnDc/maxresdefault.jpg)](https://youtu.be/TFs_JSMsnDc)\n\n### [Watch this video on YouTube](https://youtu.be/TFs_JSMsnDc)\n\n## Creators\nV Kamal Jerome | Shakthireka Karthikeyan | Kopika M | Deepesh Raj AY | Ashirvad Janardanan V\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaljerome%2Failegalassistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamaljerome%2Failegalassistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaljerome%2Failegalassistant/lists"}