How dummycodertech/research-assistant-agentic-rag works
Papeer is a Streamlit research-paper assistant. Users create a chat session, add papers from files, ArXiv, or URLs, then ask questions, verify claims, or use the separate /btw side channel. The main question workflow routes through LangGraph to retrieval, relevance checking and answer generation, with a claim-verification branch. The README documents graph stages not fully visible in the excerpts; those links cite the README. Evaluation tooling is excluded from this runtime map.
Main entry points: app.py Chat and sessions · vector_store.py Vector store API · rag_graph.py Query router · btw_handler.py /btw handler
Components 21
Chat interface
- Chat and sessions
app.py - Graph state panel
app.py
Paper ingestion
- File loaders
backend/paper_loader.py - ArXiv loader
backend/paper_loader.py - URL loader
backend/paper_loader.py
Research workflow
- LangGraph workflow
backend/rag_graph.py - Query router
backend/rag_graph.py - Retrieval agent
backend/rag_graph.py - Retrieval tools
backend/rag_graph.py - Relevancy check
backend/rag_graph.py - Query rewrite
backend/rag_graph.py - Claim verification
backend/rag_graph.py - Answer generation
backend/rag_graph.py - Structured schemas
backend/models.py
Knowledge storage
- Vector store API
backend/vector_store.py - Session vector collections
backend/vector_store.py - Embedding cache
backend/vector_store.py
Side channel
- /btw handler
backend/btw_handler.py
Other components
- User
- Groq LLM
- Tavily search
Connections 34
- User → Chat and sessions: asks or uploads
README.md - Chat and sessions → File loaders: loads files
app.py - Chat and sessions → ArXiv loader: loads papers
app.py - Chat and sessions → URL loader: loads URLs
README.md - File loaders → Vector store API: adds documents
app.py - ArXiv loader → Vector store API: adds documents
app.py - URL loader → Vector store API: adds documents
README.md - Vector store API → Session vector collections: stores chunks
backend/vector_store.py - Vector store API → Embedding cache: caches embeddings
backend/vector_store.py - User → Chat and sessions: submits query
README.md - Chat and sessions → LangGraph workflow: invokes workflow
app.py - LangGraph workflow → Query router: routes query
README.md - Query router → Retrieval agent: selects retrieval
README.md - Retrieval agent → Retrieval tools: requests tools
README.md - Retrieval tools → Vector store API: searches papers
README.md - Retrieval tools → Tavily search: searches web
README.md - Retrieval tools → Relevancy check: passes results
README.md - Relevancy check → Query rewrite: rewrites if needed
README.md - Query rewrite → Retrieval agent: retries retrieval
README.md - Relevancy check → Answer generation: passes relevant context
README.md - Query router → Claim verification: selects verification
README.md - Claim verification → Tavily search: searches claim
README.md - Claim verification → Answer generation: passes verdict
README.md - Query router → Answer generation: selects direct answer
README.md - Answer generation → Chat and sessions: returns response
README.md - Chat and sessions → Graph state panel: shows graph state
README.md - Chat and sessions → /btw handler: dispatches /btw
app.py - /btw handler → Groq LLM: routes and answers
backend/btw_handler.py - /btw handler → Tavily search: searches when needed
backend/btw_handler.py - Query router → Structured schemas: uses decision schema
backend/rag_graph.py - Relevancy check → Structured schemas: uses decision schema
backend/rag_graph.py - Claim verification → Structured schemas: uses result schema
backend/rag_graph.py - Retrieval agent → Groq LLM: plans searches
- Answer generation → Groq LLM: generates response