MortgageMind AI is an enterprise-grade AI platform that allows users to upload mortgage and financial documents, search them semantically, and interact with them through a multimodal AI assistant powered by Gemini and RAG.
MVP Scope (Version 1.0)
Users can:
- Register/Login
- Upload PDF/DOCX/images
- Ask questions about uploaded documents
- Receive answers with citations
- Search semantically
- View chat history
- Manage documents
Functional Requirements
Authentication
- Google Sign-In
- Email/Password (optional)
- JWT authentication
Documents
- Upload
- Delete
- View
- Download
- Metadata
AI
- OCR scanned PDFs
- Chunk documents
- Generate embeddings
- Store vectors
- Answer questions
- Cite sources
Admin
- User management
- Logs
- Usage dashboard
Technology Stack
Frontend
- Next.js 15
- React 19
- TypeScript
- Tailwind CSS
- shadcn/ui
Backend
- Python 3.12
- FastAPI
- SQLAlchemy
- Pydantic
- Alembic
Database
- PostgreSQL
Cache
- Redis
AI
- Gemini API
- LangChain
- LlamaIndex
- ChromaDB (development)
- Vertex AI Vector Search (production)
Cloud
- Google Cloud Run
- Cloud Storage
- Cloud SQL
- Secret Manager
- Artifact Registry
DevOps
- Docker
- Docker Compose
- GitHub Actions
- Terraform
Folder Structure
mortgagemind-ai/
│
├── frontend/
├── backend/
├── infrastructure/
├── docker/
├── terraform/
├── docs/
├── tests/
├── sample-data/
├── scripts/
├── .github/
├── README.md
├── LICENSE
└── docker-compose.yml
Sprint 1 (Week 1)
We’ll build:
✅ GitHub Repository
✅ Backend
✅ Frontend
✅ PostgreSQL
✅ Docker
✅ Login page
✅ Home page
✅ Health API
✅ Swagger


