Team name: Double N
An AI-powered assistant designed to empower renters—especially in underserved communities—by making lease agreements understandable and actionable.
- 📄 Document Scanning: OCR processing of lease agreements
- 🤖 AI Analysis: Fine-tuned legal language model for clause interpretation
⚠️ Unfair Clause Detection: Automatically highlights problematic terms- 📝 Plain English Explanations: Translates legal jargon into accessible language
- ✍️ Letter Generation: Auto-generates formal requests and dispute letters
- 🔒 Privacy-First: Local processing and encrypted storage
- 📱 Mobile-Friendly: Progressive Web App for accessibility
- Next.js 14 with TypeScript
- Tailwind CSS for styling
- Progressive Web App (PWA)
- React Hook Form for file uploads
- Python FastAPI
- PostgreSQL database
- Redis for caching
- ChromaDB for vector storage
- Google Gemini Flash 2.0 (fast and cost-effective)
- Tesseract OCR for document processing
- ChromaDB for vector storage
- Sentence Transformers for embeddings
tenant-rights-ai/
├── frontend/ # Next.js web application
├── backend/ # Python FastAPI server
├── ai-models/ # Custom model training
├── legal-templates/ # Letter and document templates
├── docker/ # Docker configurations
└── docs/ # Documentation
- Clone the repository
- Set up the backend:
cd backend && pip install -r requirements.txt - Set up the frontend:
cd frontend && npm install - Configure environment variables
- Run development servers
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reloadcd frontend
npm install
npm run devCreate .env files in both frontend and backend directories:
GEMINI_API_KEY=your_gemini_api_key
DATABASE_URL=postgresql://username:password@localhost:5432/tenant_rights
REDIS_URL=redis://localhost:6379
SECRET_KEY=your_secret_key
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_APP_URL=http://localhost:3000
