Inspiration

My cousin signed a lease without reading the fine print. Three months later, she got charged $2,000 in hidden fees. 91% of people accept terms without reading them because legal language is confusing and lawyers are expensive.

What it does

Upload a PDF or paste contract text. ContractGuard will:

  • Explain what it means in plain English
  • Score the risk (1-10)
  • Flag red flags and unfair terms
  • Suggest what to do

How I built it

Powered by DigitalOcean Gradient AI Agents with DeepSeek R1 Distill Llama 70B.

I built a custom knowledge base with 60+ contract examples (leases, employment, loans, ToS) using embeddings for RAG-based retrieval. This helps the AI understand what's normal vs. suspicious.

Frontend: React + TypeScript + Tailwind, deployed on Vercel with serverless API for PDF parsing.

Challenges

Getting the AI to talk like a friend, not a lawyer. Early outputs were too technical. Spent time refining prompts and training data.

What I learned

RAG with a custom knowledge base dramatically improves response quality over raw prompting.

Built With

Share this project:

Updates