How naxusprime/rag-project-with-pdf-uploader works
This is a single-file Streamlit app for chatting with locally processed PDFs. The main workflow is PDF upload, extraction and chunking, embedding and vector storage, multi-query retrieval, and a context-grounded answer. Session state retains the vector database and chat history across UI reruns. The source shows the orchestration and library calls; Ollama is represented as a local model service. No separate source modules implement the documented capabilities.
Main entry points: app.py Streamlit UI
Components 11
Chat interface
- Streamlit UI
app.py - Session state
app.py
Document preparation
- PDF extraction
app.py - Text chunking
app.py - Text embeddings
app.py - Chroma vector store
app.py
Retrieval and answering
- Multi-query retriever
app.py - RAG chain
app.py - Generated answer
app.py
Other components
- User
- Ollama local models
Connections 16
- User → Streamlit UI: uploads and asks
README.md - Streamlit UI → PDF extraction: processes upload
app.py - PDF extraction → Text chunking: splits documents
app.py - Text chunking → Chroma vector store: stores chunks
app.py - Text embeddings → Ollama local models: requests embeddings
app.py - Chroma vector store → Text embeddings: uses embeddings
app.py - Streamlit UI → Session state: retains state
app.py - Streamlit UI → Multi-query retriever: creates retriever
app.py - Chroma vector store → Multi-query retriever: provides search
app.py - Multi-query retriever → Ollama local models: generates queries
README.md - Streamlit UI → RAG chain: builds and invokes
app.py - RAG chain → Multi-query retriever: retrieves context
app.py - RAG chain → Ollama local models: generates response
app.py - RAG chain → Generated answer: returns answer
app.py - Generated answer → Streamlit UI: displays response
app.py - Streamlit UI → Session state: stores chat history
app.py