How vansh3829/rag-technical-documentation-assistant works
This is a local-first technical-documentation RAG assistant. Users ask questions through the Streamlit UI or API; the API runs a LangGraph workflow that analyzes the query, retrieves and grades indexed chunks, then answers with sources, retries, optional web search, and a groundedness check. Documents enter through file or URL ingestion, are chunked, embedded, and stored in Chroma. The API also exposes index status and feedback, with conversation history kept in memory and feedback persisted in SQLite. Relationships are based on the README and shown source/index references; unsampled details are not expanded.
Main entry points: main.py FastAPI endpoints · nodes.py RAG nodes · store.py Chroma vector store · workflow.py LangGraph workflow
Components 16
User interfaces
- Streamlit UI
streamlit_app.py - FastAPI endpoints
main.py - Session history
main.py - Feedback records
main.py
Answer workflow
- LangGraph workflow
graph/workflow.py - Query state
graph/state.py - RAG nodes
graph/nodes.py
Knowledge ingestion
- Documentation corpus
data/corpus - Document ingestion
ingest.py
Models and storage
- Chroma vector store
vectorstore/store.py - Application settings
config.py - Groq language model
llm/client.py - Local embeddings
llm/client.py
Other components
- Questioner
- Groq service
- Tavily search
Connections 17
- Questioner → Streamlit UI: asks
streamlit_app.py - Streamlit UI → FastAPI endpoints: sends requests
streamlit_app.py - Questioner → FastAPI endpoints: calls endpoints
README.md - FastAPI endpoints → LangGraph workflow: runs query
main.py - FastAPI endpoints → Session history: reads and updates
main.py - FastAPI endpoints → Feedback records: stores feedback
main.py - LangGraph workflow → Query state: uses schema
graph/workflow.py - LangGraph workflow → RAG nodes: dispatches nodes
graph/workflow.py - RAG nodes → Chroma vector store: retrieves chunks
graph/nodes.py - RAG nodes → Groq language model: invokes model
graph/nodes.py - Groq language model → Groq service: calls
llm/client.py - Chroma vector store → Local embeddings: embeds documents
vectorstore/store.py - Document ingestion → Chroma vector store: adds chunks
ingest.py - Documentation corpus → Document ingestion: provides documents
README.md - FastAPI endpoints → Document ingestion: ingests uploads or URLs
main.py - FastAPI endpoints → Chroma vector store: lists index
main.py - RAG nodes → Tavily search: searches fallback
graph/nodes.py