This project is a web-based AI tool that reviews legal documents like contracts and agreements. It identifies potential issues such as vague terms, missing clauses, compliance risks, and offers plain-language summaries and suggestions.
Built with FastAPI, Groq LLaMA 3, and a clean TailwindCSS frontend, served directly from the backend.
- βοΈ Accepts legal text input directly in the browser
- π§ Analyzes content using Groq API (LLaMA 3)
β οΈ Detects vague, risky, or missing clauses- π Generates plain-language summaries and suggestions
- π‘ Clean, responsive UI with Tailwind CSS
- β All served from a single FastAPI backend
legal-doc-analyzer/ βββ backend/ β βββ analyzer.py # Groq API logic β βββ main.py # FastAPI app β βββ requirements.txt # Python dependencies β βββ .env # Your Groq API key β βββ static/ β βββ index.html # UI for text input and results
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt
GROQ_API_KEY=your_groq_api_key_here
uvicorn main:app --reload
SERVICE AGREEMENT
This Service Agreement ("Agreement") is entered into on August 1, 2025, by and between TechNova Solutions ("Provider") and Daniel Smith ("Client").
-
Scope of Services: Provider agrees to deliver general IT consulting services, as requested by the Client, without specifying the nature, duration, or measurable outcome of such services.
-
Payment Terms: Payment will be made upon completion, amount to be determined based on mutual understanding. No exact fee or rate is agreed upon in this document.
-
Term: This Agreement is valid indefinitely unless terminated by one party. No formal termination clause or conditions are specified.
-
Liability: Provider assumes no responsibility for any direct or indirect damages arising out of this agreement, including but not limited to data loss or system downtime.
-
Dispute Resolution: Not included.
-
Confidentiality: The parties agree to verbally uphold confidentiality without signing a separate NDA.
-
Intellectual Property: No mention is made of the ownership of work product or deliverables.
This Agreement is governed by the laws of an unspecified jurisdiction.
Signed:
Provider: _____________________
Client: _______________________