Full-stack application for contract Q&A and clause understanding.
- client/: Next.js + NextAuth (Google OAuth) UI
- server/: Flask API (Gunicorn) serving ML/NLP endpoints
- Docker Desktop or Podman (this repo currently uses
podman-composeon macOS)
Create a local env file (never commit secrets):
cp client/.env.local.example client/.envEdit client/.env and set at least:
NEXTAUTH_URL=http://localhost:3000NEXTAUTH_SECRET=...(generate withopenssl rand -base64 32)GOOGLE_ID=...GOOGLE_SECRET=...
Also:
NEXT_PUBLIC_BACKEND_URL=http://127.0.0.1:5001
docker compose up -d --buildOpen:
- Frontend: http://localhost:3000
- Backend: http://localhost:5001/questionsshort
cd server
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
gunicorn -b 127.0.0.1:5001 app:app --reloadcd client
npm install
npm run dev- Contract upload + question selection
- Reading comprehension model (SQuAD-style)
- Paraphrasing (T5-based)
- Sentiment analysis (TextBlob)
This project is provided for research/education and is not a substitute for professional legal advice.