On-Premise AI Contract Review Software for Legal Teams
A private legal AI platform that helps lawyers search contracts, prepare demand letters, revise clauses, and generate documents without sending confidential data to third-party AI services.
Legal Operations
AI Contract Review Software
4 months
Company-controlled infrastructure
Context

The company’s legal team managed a growing number of contracts stored across different systems and file formats.
Lawyers spent hours searching for clauses, checking obligations, calculating claims, and preparing documents manually. The company needed custom AI contract review software that could automate these tasks, integrate with its existing systems, and connect every AI-generated answer to its original source.
Confidentiality was a central requirement. Contracts, prompts, and generated documents had to remain within the company’s controlled infrastructure.

Challenges Solved

- Manual search across contracts with different formats and structures.
- Time-consuming preparation of demand letters and clause revisions.
- AI-generated answers that could not be used without clear source references.
- Disconnected document, CRM, and legal workflows.
- The need to keep lawyers in control of final legal decisions.

What We Built
Celadonsoft designed and built an on-premise legal AI platform combining RAG-based contract search, legal document automation, deterministic calculations, and enterprise integrations.
The platform turns separate legal tasks into one connected workflow. Contracts are uploaded and indexed, relevant clauses are retrieved, calculations are validated, and documents are generated from approved templates. Lawyers can check the source, edit the output, and approve the final version without leaving the system.
Key Modules & Features
AI Contract Search
The AI contract assistant finds relevant clauses based on meaning rather than exact keywords.
Each answer includes the contract, section, clause, and supporting quotation. Lawyers can open the original document directly and verify the information before using it.
Demand Letter Generator
The user selects a contract and breach type and enters the relevant facts. The platform retrieves the applicable clauses, extracts the required values, calculates the claim, and generates a DOCX document.
Before the document reaches the lawyer, the system checks calculations, required fields, contract references, and document structure.
Clause Review & Negotiation
Lawyers can select disputed clauses and generate alternative wording based on approved templates and internal guidelines.
The interface shows the original and proposed versions side by side, supports manual editing, and saves the complete history of changes.
Document & Knowledge Base
Contracts and generated documents are stored in a centralised knowledge base. Original files are kept separately from their vector representations, while every indexed fragment remains connected to its source and metadata.
The architecture supports document collections ranging from hundreds to tens of thousands of contracts.
Enterprise Integrations
REST APIs connect the contract analysis software with existing DMS, CRM, ERP, and internal reference systems. Corporate SSO and role-based permissions control access to documents and platform functions.
Who We Built It For
The platform was built for attorneys handling contracts and disputes, legal operations teams managing document workflows, and business leaders responsible for productivity, security, and legal technology.
Key Engineering Decisions
Source-Grounded RAG
RAG for legal documents ensures that answers come from the company’s own contracts rather than general model knowledge. Fine-tuning improves terminology and output structure but does not replace source retrieval.
Deterministic Business Logic
The LLM extracts contract values and conditions, while separate services perform calculations and validation. This makes the results predictable, testable, and easier to audit.
Human-in-the-Loop
AI supports contract search, data extraction, and document drafting, but an authorised lawyer reviews every final document and clause revision.
Modular Architecture
Search, document generation, calculations, integrations, authentication, and storage work as separate components. This allows the company to add new legal workflows without rebuilding the entire platform.
System Architecture & Security
The web application communicates with a central AI orchestration layer that manages document retrieval, model interactions, calculations, and specialised legal workflows.
Original and generated documents are stored separately from their embeddings. Operational data, source metadata, and document versions remain connected throughout the workflow, making every result traceable.
The LLM, vector database, document storage, and application services are deployed inside the company’s controlled environment. Security measures include:
- Corporate SSO through LDAP or Active Directory.
- Role-based access control.
- Data isolation between departments.
- Audit logs for user and document actions.
- Load testing and penetration testing before production rollout.
No confidential contracts, prompts, or AI outputs are sent to public model providers.
Technology Stack & Delivery
Technology Stack
- LLM: Llama 3.1 or Mistral
- LLM inference: vLLM
- Fine-tuning: QLoRA
- RAG: LlamaIndex
- Embeddings: multilingual-e5-large
- Vector database: Qdrant
- Backend: FastAPI, Python
- Database: PostgreSQL
- File storage: MinIO, S3-compatible storage
- Infrastructure: Docker, Kubernetes
- Monitoring: Prometheus, Grafana
Timeline & Services
Celadonsoft handled the full delivery cycle:
- Product discovery, legal workflow analysis, and solution architecture.
- RAG, LLM, backend, and frontend development.
- Document generation and enterprise integrations.
- UX design, QA, and security testing.
- Infrastructure deployment, user training, and technical handover.
The platform was delivered within four months.
Design

Components
Colors
Typography
Results & Impact
- Up to 80% less time spent searching for contracts, required clauses, and related information.
- Minutes instead of hours spent preparing demand letters and other legal documents.
- 100% of AI processing takes place within the company’s controlled infrastructure, so confidential contracts, prompts, and generated documents are not sent to public AI services.
- Every AI-generated answer can be verified against its source, including the original contract, section, or clause.
- One controlled workflow for contract search, document preparation, clause revision, and approval reduces manual work and switching between disconnected tools.
- Human-in-the-loop approach: AI searches, extracts information, and prepares document drafts, while final legally binding decisions remain with qualified legal professionals.
- A scalable foundation for further legal workflow automation, supported by enterprise integrations, access controls, monitoring, and version history.
The result is not simply a chatbot connected to a document database. It is a secure legal AI system that combines source-grounded search, deterministic business logic, document automation, enterprise integrations, and human approval.
Celadonsoft provides custom legal AI software development for companies that need private deployment, tailored workflows, and full control over their documents and data.
Planning a similar solution? Book a Legal AI Architecture Call.
Components
Other cases
Drop Us a Message
and we will get back to you
within next 12 hours

.png)

.png)

.png)

