Teammates: Sara Malik, Tanish J
ClauseSense is a Streamlit-based AI agent that reviews vendor contracts like a Legal Ops assistant. Upload a contract PDF and get an explainable risk report (with clause evidence), a plain-English summary, negotiation language, and a searchable clause library across vendors.
Disclaimer: This is a student project and not legal advice.
- Risk score + flagged clauses (with evidence)
- Plain-English summary of key terms
- Negotiation email + suggested fallback language
- Clause library search across uploaded contracts (semantic search)
- Upload a contract PDF (text-based PDFs work best)
- Click Index Contract (builds the clause library)
- Click Analyze Risk + Summary
- Go to Clause Library and search for:
auto renewal,termination,liability cap - Generate a Negotiation Draft and copy the email
- Frontend: Streamlit
- LLM: Ollama (local model: llama / mistral)
- Agent orchestration: LangChain Community
- Embeddings: Sentence-Transformers
- Vector DB: ChromaDB (local)
- PDF parsing: pdfplumber
- Optional OCR: pytesseract + pdf2image
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtbrew install ollama
ollama serveIn a new terminal:
ollama pull llama3.1:8b
# or: ollama pull mistralpython -m streamlit run app.pyapp.py
requirements.txt
core/
assets/

