How daveebbelaar/document-copilot works
Document Copilot is described as an analyst-facing chatbot for querying financial-document corpora and receiving sourced answers. The repository snapshot is a scaffold: the README documents the intended frontend, API, retrieval, authentication, database, and AI stack, but no application source files are present in the tree. The graph therefore shows documented architecture, not verified runtime calls; the separate SEC downloader is the only sampled executable product code.
Main entry points: backend FastAPI service · frontend Chat interface · download.py Filing downloader · data Local filings
Components 12
Analyst interface
- Chat interface
frontend
Query service
- FastAPI service
backend
Document knowledge
- Hybrid retrieval
backend - Document corpus
backend - Chats and chunks
backend - Filing downloader
data/download.py - Local filings
data
Identity and AI
- Supabase platform
- Email authentication
backend - LLM and embeddings
Other components
- Analyst
- SEC EDGAR
Connections 13
- Analyst → Chat interface: asks questions
README.md - Chat interface → FastAPI service: sends queries
- FastAPI service → Hybrid retrieval: requests search
- Hybrid retrieval → Document corpus: searches documents
- Hybrid retrieval → Chats and chunks: retrieves chunks
- FastAPI service → LLM and embeddings: generates answers
- FastAPI service → Chat interface: returns cited answers
README.md - Email authentication → Supabase platform: authenticates users
- Hybrid retrieval → Supabase platform: uses pgvector and text search
README.md - FastAPI service → Supabase platform: stores chats and documents
README.md - FastAPI service → LLM and embeddings: creates embeddings
README.md - SEC EDGAR → Filing downloader: provides filings
data/download.py - Filing downloader → Local filings: writes filing files
data/download.py