How chandu038/knowledge-rag-assistant works
Knowledge RAG Assistant is a Streamlit study-notes app: users add typed or uploaded material, ask questions, and receive answers informed by note retrieval or general knowledge. Its main runtime separates the UI, ingestion and note operations, and answer generation; a separate agent script provides iterative web-search tool calls. The README documents the RAG workflow, while source excerpts show the concrete calls and storage/model integrations. The web-search agent is not wired into the Streamlit app, so it is shown as a separate capability.
Main entry points: assistant.py Knowledge Assistant · app.py Streamlit App · req.py Tool Agent Runner
Components 18
Study Interface
- Streamlit App
my_first_agent/app.py - Chat Interaction
my_first_agent/app.py - Note Management UI
my_first_agent/app.py
Notes and Retrieval
- Note Operations
my_first_agent/assistant.py - File Extraction
my_first_agent/assistant.py - Text Chunking
my_first_agent/assistant.py - Note Retrieval
my_first_agent/assistant.py - Persistent Note Store
Answer Generation
- Knowledge Assistant
my_first_agent/assistant.py - Date and Time
my_first_agent/assistant.py - Context and Prompt
my_first_agent/assistant.py - Answer Cleanup
my_first_agent/assistant.py
Web Search Agent
- Tool Agent Runner
my_first_agent/req.py - Tool Dispatch
my_first_agent/req.py - Web Search Tool
my_first_agent/req.py
Other components
- Student
- Groq LLM
- Tavily Search
Connections 20
- Student → Streamlit App: uses
README.md - Streamlit App → Chat Interaction: renders
my_first_agent/app.py - Streamlit App → Note Management UI: renders
my_first_agent/app.py - Chat Interaction → Knowledge Assistant: asks
my_first_agent/app.py - Knowledge Assistant → Date and Time: checks
my_first_agent/assistant.py - Knowledge Assistant → Note Retrieval: searches
my_first_agent/assistant.py - Knowledge Assistant → Context and Prompt: builds context
my_first_agent/assistant.py - Context and Prompt → Groq LLM: requests answer
my_first_agent/assistant.py - Knowledge Assistant → Answer Cleanup: cleans response
my_first_agent/assistant.py - Answer Cleanup → Chat Interaction: returns answer
my_first_agent/app.py - Note Management UI → Note Operations: adds, lists, deletes
my_first_agent/app.py - Note Management UI → File Extraction: submits file
my_first_agent/app.py - File Extraction → Text Chunking: extracts then chunks
my_first_agent/assistant.py - Text Chunking → Note Operations: adds chunks
my_first_agent/assistant.py - Note Operations → Persistent Note Store: reads and writes
my_first_agent/assistant.py - Note Retrieval → Persistent Note Store: queries
my_first_agent/assistant.py - Tool Agent Runner → Groq LLM: requests tool calls
my_first_agent/req.py - Tool Agent Runner → Tool Dispatch: dispatches calls
my_first_agent/req.py - Tool Dispatch → Web Search Tool: invokes
my_first_agent/req.py - Web Search Tool → Tavily Search: searches web
my_first_agent/req.py