How shahzaibkaramat67-coder/rag_chroma_agent works
This is a small PDF question-answering app using retrieval-augmented generation. Its workflow has two stages: system setup extracts and chunks a PDF, embeds the chunks, and stores them in Chroma; an interactive terminal loop retrieves relevant chunks, builds a context-constrained prompt, and streams a Gemini answer. The graph focuses on these runtime paths and the persisted vector store. The README is empty, and the sampled source does not show internal Chroma operations or external service internals.
Main entry points: User_input.py Question loop · system_setup.py Index setup · Database Chroma store · FYP_Blog_Site_Final.pdf Source PDF
Components 11
PDF indexing
- Source PDF
document/FYP_Blog_Site_Final.pdf - Index setup
system_setup.py - PDF extraction
system_setup.py - Text chunking
system_setup.py - HuggingFace embeddings
system_setup.py
Knowledge store
- Chroma store
Database
Question answering
- Question loop
User_input.py - Similarity retrieval
User_input.py - Context prompt
User_input.py - Gemini generation
User_input.py
Other components
- Terminal user
Connections 12
- Index setup → Source PDF: loads
system_setup.py - Index setup → PDF extraction: invokes
system_setup.py - Index setup → Text chunking: splits
system_setup.py - Index setup → HuggingFace embeddings: embeds chunks
system_setup.py - Index setup → Chroma store: indexes chunks
system_setup.py - Terminal user → Question loop: asks
User_input.py - Question loop → Similarity retrieval: queries
User_input.py - Similarity retrieval → Chroma store: searches
User_input.py - Similarity retrieval → Question loop: returns documents
User_input.py - Question loop → Context prompt: fills context
User_input.py - Question loop → Gemini generation: streams prompt
User_input.py - Question loop → Terminal user: prints answer
User_input.py