How dalinaveen/ai-powered-multi-document-assistant works
This is a Streamlit document assistant: users upload files, which are loaded, cleaned, chunked, and indexed; questions then retrieve indexed context for Groq-backed responses. The graph distinguishes ingestion, indexing, and answer-generation stages, plus the UI. Source excerpts show the principal calls; README claims additional output tasks, but the sampled implementation uses a general prompt-and-answer chain. The upload and OCR paths are represented at their shared source-file level.
Main entry points: calling_build.py Processing orchestrator · app.py Streamlit UI · rag_pipeline.py Context retrieval · build_faiss.py FAISS index builder
Components 15
User interface
- Streamlit UI
app/app.py - Uploaded files
Document ingestion
- Processing orchestrator
src/calling_build.py - Document loaders
src/load_documents.py - Image and scan OCR
src/load_documents.py - Text cleaning
src/clean_chunk.py - Text chunking
src/clean_chunk.py
Indexing and retrieval
- FAISS index builder
src/build_faiss.py - Embedding model
src/embeddings.py - FAISS vector store
Answer generation
- Context retrieval
src/rag_pipeline.py - Prompt chain
src/rag_pipeline.py - Generated answer
Other components
- User
- Groq LLM
Connections 17
- User → Streamlit UI: uses
app/app.py - User → Uploaded files: selects
- Uploaded files → Streamlit UI: uploads
app/app.py - Streamlit UI → Processing orchestrator: calls processing
app/app.py - Streamlit UI → Context retrieval: requests answer
app/app.py - Processing orchestrator → Document loaders: loads documents
src/calling_build.py - Document loaders → Image and scan OCR: uses for scans
src/load_documents.py - Processing orchestrator → Text cleaning: cleans text
src/calling_build.py - Processing orchestrator → Text chunking: chunks text
src/calling_build.py - Processing orchestrator → FAISS index builder: builds index
src/calling_build.py - FAISS index builder → Embedding model: creates embeddings
src/build_faiss.py - FAISS index builder → FAISS vector store: writes index
src/build_faiss.py - Context retrieval → FAISS vector store: loads index
src/rag_pipeline.py - Context retrieval → Prompt chain: provides context
src/rag_pipeline.py - Prompt chain → Groq LLM: invokes model
src/rag_pipeline.py - Prompt chain → Generated answer: returns response
src/rag_pipeline.py - Context retrieval → Streamlit UI: returns answer
app/app.py