AI-Powered Contract Analysis for M&A Due Diligence

Upload contracts. Chat with them in plain English. Extract clauses, assess risk, track obligations, and generate executive reports — all powered by AI.

brightclause.com/documents/acme-techstart-ma

Document Analysis

Acme Corp – TechStart Acquisition Agreement

HIGH RISK

3

Critical

7

High

12

Medium

24

Low

Extracted Clauses

§4.2Termination for Convenience
critical
§7.1Limitation of Liability Cap
high
§9.3Change of Control Provision
high
§5.3Confidentiality (Mutual)
medium
§12.1Governing Law & Jurisdiction
low

Knowledge Graph

6 entities · 7 relations

$5.2MAcme CorpTechStartIP LicenseJan 2024Delaware
Party
Amount
Date
Location
Clause

How It Works

End-to-end pipeline from PDF upload to actionable insights in six stages

01

Upload

PDF stored in MinIO (S3)

02

Extract

4-tier OCR pipeline

03

Embed

pgvector embeddings

04

Analyze

Clauses, risk, entities

05

Chat

RAG-powered Q&A

06

Act

Reports, obligations, deals

Key Features

Enterprise-grade contract analysis capabilities built from scratch

Chat with Your Contract

Ask questions in plain English. RAG-powered Q&A retrieves relevant clauses and generates contextual answers with source citations.

AI Clause Extraction

16+ clause types automatically identified and classified: termination, indemnification, IP, non-compete, and more.

Plain-English Translator

One click to translate any legal clause into simple language anyone can understand. No law degree required.

Risk Assessment

Each clause scored Critical / High / Medium / Low with specific risk factors and AI-generated summaries.

Obligation Tracker

AI extracts obligations, responsible parties, and deadlines from clauses. Track status as pending, completed, or overdue.

Executive Reports

AI-generated executive summaries with risk overview, key clauses, and actionable recommendations. Export as PDF.

Timeline Extraction

Automatically extracts key dates — effective, expiration, renewal, payment — and displays them on an interactive timeline.

Deal Grouping

Group related contracts into deals for aggregate risk analysis, batch uploads, and portfolio-level insights.

Knowledge Graph

Entity extraction and relationship mapping. Visualize parties, dates, amounts, and obligations as an interactive graph.

Hybrid Vector Search

Semantic + keyword search powered by pgvector embeddings. Find relevant clauses using natural language.

PDF Viewer & Export

In-app PDF viewing with clause navigation. Export analysis as PDF, Excel, Word, CSV, or JSON.

Dark & Light Mode

Full theme toggle with persistent preferences. Professional interface that adapts to your working environment.

16+ Clause Types

AI identifies and classifies clause types common in M&A contracts

TerminationIndemnificationLimitation of LiabilityConfidentialityNon-CompeteIntellectual PropertyChange of ControlAssignmentGoverning LawDispute ResolutionWarrantyForce MajeurePayment TermsInsuranceAudit RightsData Privacy

Tech Stack

Modern, production-grade architecture with full Docker deployment

Frontend

  • Next.js 14
  • TypeScript
  • Tailwind CSS
  • Framer Motion
  • Dark/Light Theming

Backend

  • FastAPI
  • SQLAlchemy 2.0
  • Celery
  • Pydantic
  • 8 API Routers

AI / ML

  • Ollama (llama3.2)
  • RAG Pipeline
  • pgvector
  • Nomic Embed
  • Tesseract OCR

Infrastructure

  • PostgreSQL 16
  • Redis 7
  • MinIO (S3)
  • Docker Compose

Production-Grade Architecture

RAG-Powered Chat

Retrieval-augmented generation combines vector search with LLM inference for contextual Q&A

Async Task Processing

Celery workers handle OCR, embedding, and AI analysis without blocking the API

Full Audit Trail

Every action logged — uploads, analysis, chat questions, exports — with timestamps and context

Secure Architecture

Server-side API proxy hides backend IP. Docker Compose with 6 containerized services

# Architecture
┌─────────────────────────────────────┐
│          Next.js Frontend           │
│  Dashboard · Chat · Deals · Search  │
└──────────────┬──────────────────────┘
               │  API Proxy (server-side)
┌──────────────▼──────────────────────┐
│          FastAPI Backend            │
│  8 API routers · RAG · Extraction   │
├─────────┬───────────┬───────────────┤
│ Celery  │ pgvector  │    MinIO      │
│ Workers │ Embeddings│  (S3 Storage) │
├─────────┼───────────┼───────────────┤
│  Redis  │ PostgreSQL│    Ollama     │
│ (Queue) │   (Data)  │   (LLM AI)   │
└─────────┴───────────┴───────────────┘

See It in Action

Upload a contract and chat with it. Explore clause extraction, risk assessment, obligation tracking, deal grouping, and knowledge graph visualization.