How kvkrpm/documind-ai works
DocuMind AI is a PDF question-answering application. Users register or start a temporary guest workspace, upload PDFs, ask questions, and receive answers with document/page citations. The API coordinates workspace access, document lifecycle, and question answering; document text is extracted and chunked before retrieval and generation. Account verification and recovery use optional SMTP. The supplied excerpts do not show every route implementation, so some documented workflow links cite the README rather than unsampled source.
Main entry points: main.py API routes · rag_service.py RAG and vector retrieval · App.jsx Web application · auth_service.py Authentication
Components 14
User interface
- Web application
frontend/src/App.jsx
API and access
- API routes
backend/app/main.py - Request and response models
backend/app/models/schemas.py - Authentication
backend/app/services/auth_service.py - Workspace metadata
backend/app/services/document_store.py - Runtime settings
backend/app/core/config.py
Document processing
- PDF extraction and chunking
backend/app/services/pdf_service.py - PDF files
Retrieval and answers
- RAG and vector retrieval
backend/app/services/rag_service.py - Hybrid ranking
backend/app/services/hybrid_retrieval.py - Chroma vector store
Other components
- User
- Gemini AI
- SMTP email
Connections 15
- User → Web application: uses
README.md - Web application → API routes: calls API
frontend/src/App.jsx - API routes → Request and response models: validates requests
backend/app/main.py - API routes → Authentication: authenticates
backend/app/main.py - API routes → Workspace metadata: reads and writes
backend/app/main.py - API routes → PDF extraction and chunking: processes uploads
backend/app/main.py - API routes → PDF files: stores PDFs
backend/app/main.py - API routes → RAG and vector retrieval: answers questions
README.md - API routes → SMTP email: sends verification mail
backend/app/main.py - PDF extraction and chunking → RAG and vector retrieval: provides chunks
- RAG and vector retrieval → Hybrid ranking: ranks candidates
backend/app/services/rag_service.py - RAG and vector retrieval → Chroma vector store: queries vectors
backend/app/services/rag_service.py - RAG and vector retrieval → Gemini AI: embeds and generates
README.md - API routes → Runtime settings: uses configuration
backend/app/main.py - Authentication → Runtime settings: uses secrets
backend/app/services/auth_service.py