How sahumonu/medibot works
MediBot is a medical-information question-answering app grounded in a local PDF knowledge base. Its main workflow is PDF ingestion, chunking and indexing, followed by Streamlit chat, retrieval, and a context-constrained Groq answer with source documents. A separate script offers a terminal-based retrieval-and-answer flow over the same FAISS store. The graph reflects the three supplied scripts; the README is empty, and the repository tree shows no data or vector-store contents.
Main entry points: medibot.py App QA chain · connect_memory_with_llm.py Terminal question flow · create _memory_for_lim.py FAISS index
Components 15
Knowledge ingestion
- PDF collection
- Load and chunk PDFs
create _memory_for_lim.py - Create embeddings
create _memory_for_lim.py - FAISS index
create _memory_for_lim.py
Chat application
- Streamlit chat and history
medibot.py - App QA chain
medibot.py - App retriever
medibot.py - Medical answer prompt
medibot.py - Source formatting
medibot.py
Terminal Q&A
- Terminal question flow
connect_memory_with_llm.py - CLI retriever
connect_memory_with_llm.py - CLI context prompt
connect_memory_with_llm.py
Other components
- Chat user
- Groq chat model
- CLI Groq model
Connections 18
- PDF collection → Load and chunk PDFs: loads
create _memory_for_lim.py - Load and chunk PDFs → Create embeddings: chunks for
create _memory_for_lim.py - Create embeddings → FAISS index: indexes
create _memory_for_lim.py - Chat user → Streamlit chat and history: asks
medibot.py - Streamlit chat and history → App QA chain: invokes
medibot.py - App QA chain → App retriever: uses
medibot.py - App retriever → FAISS index: searches
medibot.py - App QA chain → Medical answer prompt: configures with
medibot.py - App QA chain → Groq chat model: queries
medibot.py - App QA chain → Streamlit chat and history: returns answer and sources
medibot.py - Streamlit chat and history → Source formatting: formats sources
medibot.py - Streamlit chat and history → Chat user: displays answer
medibot.py - Chat user → Terminal question flow: enters query
connect_memory_with_llm.py - Terminal question flow → CLI retriever: builds chain with
connect_memory_with_llm.py - CLI retriever → FAISS index: loads and searches
connect_memory_with_llm.py - Terminal question flow → CLI context prompt: builds chain with
connect_memory_with_llm.py - Terminal question flow → CLI Groq model: configures chain with
connect_memory_with_llm.py - Terminal question flow → Chat user: prints answer and sources
connect_memory_with_llm.py