How jadeharsha/documind-ai works
Documind AI is a workspace-based document intelligence application. Users sign in, organize documents into workspaces, upload them for extraction and indexing, then use grounded chat and research or study features to work with the indexed material. The frontend exposes those capabilities through routed pages and a shared API client; backend ingestion and retrieval support document processing and RAG. Several feature implementations and backend routes were not sampled, so those connections are marked unverified rather than asserted.
Main entry points: App.tsx Routes and layouts · api.ts API client · tasks.py Ingestion task · urls.py Backend API routes
Components 25
Web application
- Routes and layouts
frontend/src/App.tsx - Authentication state
frontend/src/stores/authStore.ts - Workspace state
frontend/src/stores/workspaceStore.ts - API client
frontend/src/services/api.ts - Document management
frontend/src/pages/DocumentsPage.tsx - Grounded chat
frontend/src/pages/ChatPage.tsx - Agent tasks
frontend/src/pages/AgentPage.tsx - Research analysis
frontend/src/pages/ResearchPage.tsx - Study tools
frontend/src/pages/QuizzesPage.tsx - Analytics
frontend/src/pages/AnalyticsPage.tsx - Summaries and comparisons
frontend/src/pages/SummariesPage.tsx
Document processing
- Document records
backend/apps/documents/models.py - Ingestion task
backend/apps/ingestion/tasks.py - File storage
backend/apps/ingestion/services/storage.py - Text extraction
backend/apps/ingestion/services/extractor.py - Page-aware chunking
backend/apps/ingestion/services/chunker.py
AI capabilities
- Text embeddings
backend/apps/embeddings/services/embedding_service.py - Vector retrieval
backend/apps/retrieval/services/qdrant_service.py - RAG engine
backend/apps/rag/services/rag_engine.py - LLM providers
backend/apps/rag/services/llm_service.py - Agent workflow
backend/apps/agent/orchestrator/langgraph_workflow.py - Agent tools
backend/apps/agent/tools/registry.py
Workspace services
- Backend API routes
backend/config/urls.py - Other feature APIs
backend/apps
Other components
- User
Connections 31
- User → Routes and layouts: uses
frontend/src/App.tsx - Routes and layouts → Document management: routes to
frontend/src/App.tsx - Routes and layouts → Grounded chat: routes to
frontend/src/App.tsx - Routes and layouts → Agent tasks: routes to
frontend/src/App.tsx - Routes and layouts → Research analysis: routes to
frontend/src/App.tsx - Routes and layouts → Study tools: routes to
frontend/src/App.tsx - Routes and layouts → Analytics: routes to
frontend/src/App.tsx - Routes and layouts → Summaries and comparisons: routes to
frontend/src/App.tsx - Authentication state → API client: calls
frontend/src/stores/authStore.ts - Workspace state → API client: calls
frontend/src/stores/workspaceStore.ts - Document management → API client: calls
frontend/src/pages/DocumentsPage.tsx - Grounded chat → API client: calls
frontend/src/pages/ChatPage.tsx - Agent tasks → API client: calls
frontend/src/pages/AgentPage.tsx - Research analysis → API client: calls
frontend/src/pages/ResearchPage.tsx - Study tools → API client: calls
frontend/src/pages/QuizzesPage.tsx - Analytics → API client: calls
frontend/src/pages/AnalyticsPage.tsx - API client → Backend API routes: HTTP requests
- Backend API routes → Document records: routes requests
- Ingestion task → Document records: updates records
backend/apps/ingestion/tasks.py - Ingestion task → File storage: loads files
backend/apps/ingestion/tasks.py - Ingestion task → Text extraction: extracts text
backend/apps/ingestion/tasks.py - Ingestion task → Page-aware chunking: chunks pages
backend/apps/ingestion/tasks.py - Ingestion task → Text embeddings: embeds chunks
backend/apps/ingestion/tasks.py - Ingestion task → Vector retrieval: indexes chunks
backend/apps/ingestion/tasks.py - RAG engine → Text embeddings: embeds queries
backend/apps/rag/services/rag_engine.py - RAG engine → Vector retrieval: retrieves context
backend/apps/rag/services/rag_engine.py - RAG engine → LLM providers: generates answers
backend/apps/rag/services/rag_engine.py - Backend API routes → RAG engine: dispatches queries
- Backend API routes → Agent workflow: dispatches tasks
- Agent workflow → Agent tools: uses tools
- Backend API routes → Other feature APIs: serves features