https://github.com/kamaljerome/ailegalassistant
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.
https://github.com/kamaljerome/ailegalassistant
chatbot generative-ai legal openai python rag streamlit
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/kamaljerome/ailegalassistant
- Owner: KamalJerome
- License: apache-2.0
- Created: 2024-11-04T15:24:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T01:44:04.000Z (over 1 year ago)
- Last Synced: 2025-01-27T09:14:35.666Z (over 1 year ago)
- Topics: chatbot, generative-ai, legal, openai, python, rag, streamlit
- Language: Python
- Homepage:
- Size: 1.41 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚖️ AI Legal Assistant ⚖️
an 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.
## Key Features
- ✅ **IPC-verified Answers**: Provides context-aware responses by referencing the prompt according to the Indian Penal Code.
- 📜 **Legal Doc Generator**: Generates legal documents from a single prompt, in a ready-to-use Word `.docx` format.
- 🔍 **Judgment Prediction**: Uses a high-level Bi-GRU neural network model, trained on cases from 1947 to 2020, to accurately predict a court verdict.
- 🧩 **Interactive Console**: Simple and interactive user interface powered by Streamlit for ease of use.
## Technologies Used
- 🤖 Mistral AI's `Mixtral-8x22B-Instruct-v0.1` for natural language understanding and response generation.
- ⚙️ `InLegalBERT` for Indian Penal Code text embeddings.
- 🧩 **Streamlit** for the front-end interface.
- 📅 **Redis** for quick, indexed access to knowledge base entries.
- 🐍 **Python** for core application logic.
## Getting Started
AI Legal Assistant has been deployed here: https://ailegalassistant.streamlit.app/
**HOW TO USE:**
1. Upload Case Files: Upload your case files to get a predicted judgment backed by solid legal rationale.
2. Ask Legal Questions: Ask any legal query to AI Legal Assistant's Chat Bot.
3. Create Legal Documents: AI Legal Assistant can generate content for legal documents, extracting information from your prompts.
## Demo Video
[](https://youtu.be/TFs_JSMsnDc)
### [Watch this video on YouTube](https://youtu.be/TFs_JSMsnDc)
## Creators
V Kamal Jerome | Shakthireka Karthikeyan | Kopika M | Deepesh Raj AY | Ashirvad Janardanan V