How venky0705/multi-model_project works
This is a Streamlit PDF question-answering app built around multimodal RAG. A visitor or owner selects/uploads a PDF, the app parses its text, OCR, tables, and images, indexes document content in Qdrant using local BGE-M3 embeddings, then retrieves evidence for a Groq-generated answer. The graph includes the documented hosted-default and persistent owner selection behavior. Some UI and pipeline code was sampled only partially, so edges rely on those excerpts, the SOURCE INDEX, or README statements; unsampled implementation details are not expanded.
Main entry points: generation.py Multimodal answer generation · app.py PDF chat workspace · ingestion.py Chunk and index · retriever.py Evidence retrieval
Components 14
App experience
- PDF chat workspace
UI/app.py - Workspace preference
config/public_workspace.json - Hosted default PDF
data/uploads/Vemala Venkatesh CV.pdf.pdf
Document processing
- PDF parser
src/parsing.py - Chunk and index
src/ingestion.py
Retrieval and answers
- Local embeddings
src/embeddings.py - Qdrant collection
- Evidence retrieval
src/retriever.py - Multimodal answer generation
src/generation.py - RAG prompts
prompt_library/prompt.py - Groq model service
Shared support
- Pipeline exceptions
exception/custom_exception.py - Structured logging
logger/custom_logger.py
Other components
- Visitor / owner
Connections 23
- Visitor / owner → PDF chat workspace: selects and asks
README.md - Hosted default PDF → PDF chat workspace: starts with
README.md - PDF chat workspace → PDF parser: prepares PDF
UI/app.py - PDF chat workspace → Chunk and index: indexes document
UI/app.py - PDF chat workspace → Multimodal answer generation: requests answer
UI/app.py - PDF chat workspace → Workspace preference: remembers selection
README.md - Chunk and index → PDF parser: parses PDF
src/ingestion.py - Chunk and index → Local embeddings: embeds chunks
src/ingestion.py - Chunk and index → Qdrant collection: writes vectors
src/ingestion.py - Evidence retrieval → Local embeddings: embeds query
src/retriever.py - Evidence retrieval → Qdrant collection: searches vectors
src/retriever.py - Multimodal answer generation → Evidence retrieval: retrieves evidence
src/generation.py - Multimodal answer generation → RAG prompts: formats prompt
src/generation.py - Multimodal answer generation → Groq model service: generates answer
README.md - Multimodal answer generation → PDF chat workspace: returns answer
UI/app.py - PDF parser → Pipeline exceptions: raises on failure
src/parsing.py - Chunk and index → Pipeline exceptions: raises on failure
src/ingestion.py - Evidence retrieval → Pipeline exceptions: raises on failure
src/retriever.py - Multimodal answer generation → Pipeline exceptions: raises on failure
src/generation.py - PDF parser → Structured logging: records events
src/parsing.py - Chunk and index → Structured logging: records events
src/ingestion.py - Evidence retrieval → Structured logging: records events
src/retriever.py - Multimodal answer generation → Structured logging: records events
src/generation.py