Clause Buddy Understand complex legal documents in plain English using the power of Google Gemini. This full-stack application provides a user-friendly interface to upload documents, ask specific questions, and automatically scan for risky clauses.
Core Features Document Upload: Securely upload your legal documents in various formats (.pdf, .docx, .txt). The backend processes and prepares them for analysis.
Question Answering (RAG): Ask specific questions about your document (e.g., "What are the termination conditions?") and receive concise, easy-to-understand answers generated by a Retrieval-Augmented Generation pipeline.
Risk Analysis: Automatically scan your document to identify and explain important legal clauses such as Termination, Limitation of Liability, and Indemnification, complete with severity ratings (High, Medium, Low).
Tech Stack This project is a monorepo containing a separate frontend and backend.
Area: Technology
Frontend : React (with Vite), Tailwind CSS
Backend : Python, FastAPI
LLM, embedding : Google Gemini 1.5 Flash, LangChain
Database :ChromaDB (Vector Store)
Deployment : Frontend on Vercel, Backend on Render
Getting Started Prerequisites Python 3.9+ Node.js v18+ A Google Gemini API Key.
- Backend Setup
cd src/backend
pip install -r requirements.txt
"GOOGLE_API_KEY='YOUR_GOOGLE_API_KEY_HERE'"
uvicorn main:app --reload
The backend will be running at http://localhost:8000.
- Frontend Setup
cd src/client
npm install
"LLM_API_URL"="http://localhost:8000"
npm run dev
The frontend will be running at http://localhost:5173.