Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

LegalEase AI is a document simplification tool built using Gemini API, Streamlit, and Hugging Face models. It allows users to upload legal PDFs and automatically receive simplified summaries, clause-level insights, and structured information designed for clarity and accessibility.

Notifications You must be signed in to change notification settings

hannahjan06/LegalEase-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LegalEase AI

AI-Powered Legal Document Simplification and Analysis

last commit Python languages

Built using:

Overview

LegalEase AI is a web platform designed to simplify complex legal documents using structured AI agents. Users can upload agreements, policies, contracts, and other legal files, and the system automatically generates simplified summaries, risk assessments, and visual flowcharts for faster understanding. The project demonstrates the practical use of generative AI for legal assistance, clarity, and accessibility.


Core Features

  • User Authentication Secure signup and login with a modern UI.

  • Document Upload Support PDF upload with OCR processing for scanned files.

  • AI Agent Pipeline

    • PDF Reader Agent (OCR + text extraction)
    • Summarization Agent (section-level simplification)
    • Structuring Agent (risk and clause analysis)
    • Flowchart Agent (visual representation of key relationships)
  • Interactive Chat Interface Users can ask clarifying questions about the uploaded document.

  • Modern UI Design Clean, minimal interface prioritizing readability and structure.


How It Works

  1. The user authenticates and uploads a legal document.
  2. The document is stored in Google Cloud Storage.
  3. The PDF Reader agent extracts and preprocesses text.
  4. The Summarization and Structuring agents analyze the content.
  5. The Flowchart agent produces a visual logic diagram of key clauses.
  6. Users view results through a dashboard and chatbot interface.

Tech Stack

Layer Technologies
Frontend Next.js, React, TailwindCSS
Backend FastAPI or Flask
AI Processing Google Gemini API, Python agents
OCR pytesseract, pdf2image
Cloud Google Cloud Storage, Vertex AI
Deployment GCP services

Installation

1. Clone the Repository

git clone https://github.com/your-username/legalease.git
cd legalease

2. Frontend Setup

cd frontend
npm install
npm run dev

3. Backend Setup

cd backend
pip install -r requirements.txt
uvicorn app:main --reload

Project Structure

/frontend
   /components        # UI components including chatbot and upload interface
   /pages             # login, signup, dashboard screens
   /styles            # Tailwind configuration

/backend
   /agents            # PDF Reader, Summarizer, Structurer, Flowchart logic
   /utils             # Cloud storage helpers and error handling
   app.py             # FastAPI entry point

Workflow

  1. User logs in.
  2. PDF document is uploaded and stored.
  3. OCR extracts text where necessary.
  4. AI agents analyze and structure document content.
  5. Flowchart and simplified summary are generated.
  6. Processed results are delivered through the dashboard and chatbot.

Roadmap

  • Multi-language support
  • Clause comparison between similar contract types
  • Exportable simplified reports
  • Versioning for document history
  • Fine-tuned legal language models for more accuracy

Contributing

Contributions are welcome in interface refinement, AI pipeline improvements, dataset expansion, or document parsing. Submit a pull request with clear documentation.


Acknowledgements

  • Google Cloud Platform for compute, storage, and generative AI services
  • Open-source OCR frameworks supporting document accessibility
  • Legal research datasets used for testing and benchmarking

About

LegalEase AI is a document simplification tool built using Gemini API, Streamlit, and Hugging Face models. It allows users to upload legal PDFs and automatically receive simplified summaries, clause-level insights, and structured information designed for clarity and accessibility.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages