An open API service indexing awesome lists of open source software.

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.

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
[![Watch the video](https://img.youtube.com/vi/TFs_JSMsnDc/maxresdefault.jpg)](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