How ankitprakash12c/kubernetes-prometheus-grafana works
PDF_Chat_Bot is a Streamlit medical-report assistant: a user uploads a PDF, then asks questions answered from its contents. The visible implementation uses PDF processing, sentence-based chunking, sentence-transformer embeddings, a FAISS similarity index, and Gemini answer generation. The UI calls the assistant constructor and query method; excerpts show indexing and model calls, but omit parts of the processing and retrieval implementation. The README documents no additional capabilities, so the graph focuses on the visible workflow.
Main entry points: BackendLogic.py PDF assistant · app.py Streamlit interface
Components 10
User interface
- Streamlit interface
app.py
Report processing
- PDF report
- PDF processing
BackendLogic.py - Text chunking
BackendLogic.py - Text embeddings
BackendLogic.py - FAISS index
BackendLogic.py
Question answering
- PDF assistant
BackendLogic.py - Similarity search
BackendLogic.py - Gemini API
Other components
- Report user
Connections 13
- Report user → Streamlit interface: uploads PDF
app.py - Streamlit interface → PDF assistant: creates assistant
app.py - PDF assistant → PDF processing: processes report
BackendLogic.py - PDF report → PDF processing: supplies file
- PDF processing → Text chunking: extracts text
BackendLogic.py - Text chunking → Text embeddings: encodes chunks
BackendLogic.py - Text embeddings → FAISS index: adds vectors
BackendLogic.py - Report user → Streamlit interface: asks question
app.py - Streamlit interface → PDF assistant: calls query
app.py - PDF assistant → Similarity search: searches report
BackendLogic.py - Similarity search → FAISS index: queries index
BackendLogic.py - PDF assistant → Gemini API: generates answer
BackendLogic.py - PDF assistant → Streamlit interface: returns answer
app.py