How govind252005/multimodal-rag works
This is an enterprise multimodal RAG platform: users upload documents and ask questions through a web interface; the backend ingests content into searchable indexes, retrieves evidence, and generates cited answers. Its documented scope also includes multilingual retrieval, audio and image processing, document evidence viewing, tenant security, and disaster recovery. The graph combines README claims with the supplied source excerpts and index references; unsampled implementation details and some wiring are therefore left unconnected.
Main entry points: main.py HTTP API · ingest.py Ingestion coordinator · search.py Hybrid retrieval · vector_store.py Vector collections
Components 20
Web experience
- Web interface
frontend/src/App.tsx - API client
frontend/src/api.ts - Evidence viewer
frontend/src/components/DocumentViewer.tsx
Backend and security
- HTTP API
backend/main.py - Auth and sessions
backend/auth.py - Runtime configuration
backend/config.py
Ingestion
- Ingestion coordinator
backend/ingestion/ingest.py - Image OCR and captions
backend/ingestion/image_pipeline.py - Audio transcription
backend/ingestion/audio_pipeline.py
Retrieval and generation
- Multimodal embeddings
backend/retrieval/embeddings.py - Vector collections
backend/retrieval/vector_store.py - Lexical index
backend/retrieval/lexical_index.py - Hybrid retrieval
backend/retrieval/search.py - Grounded answer
backend/generation/answer.py - Provider routing
backend/generation/providers/router.py
Evaluation and recovery
- Disaster recovery
backend/backup_manager.py - Evaluation runner
evaluation/runner/run_eval.py - Retrieval metrics
evaluation/metrics/retrieval_metrics.py
Other components
- User
- Local Ollama
Connections 22
- User → Web interface: uses
README.md - Web interface → API client: calls
frontend/src/App.tsx - API client → HTTP API: REST and SSE
README.md - Web interface → Evidence viewer: renders
frontend/src/App.tsx - HTTP API → Auth and sessions: authenticates
backend/main.py - HTTP API → Ingestion coordinator: submits uploads
backend/main.py - Ingestion coordinator → Image OCR and captions: processes images
backend/ingestion/ingest.py - Ingestion coordinator → Audio transcription: processes audio
backend/ingestion/ingest.py - Ingestion coordinator → Multimodal embeddings: creates vectors
backend/ingestion/ingest.py - Ingestion coordinator → Vector collections: stores records
backend/ingestion/ingest.py - Image OCR and captions → Multimodal embeddings: embeds content
- Vector collections → Lexical index: updates index
backend/retrieval/vector_store.py - HTTP API → Grounded answer: requests answers
backend/main.py - Grounded answer → Hybrid retrieval: retrieves evidence
backend/generation/answer.py - Hybrid retrieval → Multimodal embeddings: encodes queries
backend/retrieval/search.py - Hybrid retrieval → Vector collections: queries vectors
backend/retrieval/search.py - Hybrid retrieval → Lexical index: searches terms
backend/retrieval/search.py - Grounded answer → Provider routing: generates response
backend/generation/answer.py - Provider routing → Local Ollama: routes inference
- HTTP API → Runtime configuration: uses settings
backend/main.py - Disaster recovery → Vector collections: backs up collections
- Evaluation runner → Retrieval metrics: evaluates retrieval
evaluation/runner/run_eval.py