How chadha-sridi/arxivhub works
ArxivHub is a multi-user research-paper workspace and conversational RAG assistant. Users add arXiv papers, browse paper details and notes, then ask questions; the chat workflow summarizes history, analyzes and scopes research queries, retrieves and grades paper chunks, audits for gaps, optionally searches Tavily, and generates a grounded answer. The graph orchestrates these stages, while ingestion maintains paper metadata and Qdrant vectors. README documents workflow capabilities beyond the sampled implementation; edges for those stages cite the README, and unsampled details are not inferred.
Main entry points: graph.py RAG workflow router · app.py Gradio workspace · generation.py Research answer · paperingestion.py ArXiv ingestion
Components 21
Research workspace
- Gradio workspace
src/app.py - Paper views and notes
src/ui/utils.py
Paper ingestion
- ArXiv ingestion
src/ingestion/paperingestion.py - Paper metadata
src/ingestion/paperingestion.py
Research assistant
- RAG workflow router
src/graph.py - Conversation summary
src/rag/conversation_summary.py - Query analysis
src/rag/query_analysis.py - Paper scoping
src/rag/scoping.py - Adaptive retrieval
src/rag/retrieval.py - Document grading
src/rag/document_grading.py - Knowledge audit
src/rag/knowledge_auditing.py - Tavily search
src/rag/tavily_search.py - Research answer
src/rag/generation.py - Casual response
src/rag/casual_generation.py
Runtime and state
- Qdrant vectors
src/config.py - Model and service config
src/config.py - Workflow state
src/core/schemas.py - Prompt templates
src/core/prompts.py
Other components
- Researcher
- arXiv service
- Tavily service
Connections 37
- Researcher → Gradio workspace: uses
README.md - Gradio workspace → RAG workflow router: streams chat
src/app.py - Gradio workspace → Model and service config: gets vector store
src/app.py - Gradio workspace → Paper views and notes: binds paper actions
src/app.py - Gradio workspace → Paper metadata: loads inventory
src/app.py - Paper views and notes → ArXiv ingestion: submits papers
src/ui/utils.py - Paper views and notes → Paper metadata: saves notes
src/ui/utils.py - ArXiv ingestion → arXiv service: loads papers
src/ingestion/paperingestion.py - ArXiv ingestion → Qdrant vectors: upserts chunks
src/ingestion/paperingestion.py - ArXiv ingestion → Paper metadata: updates inventory
src/ingestion/paperingestion.py - Model and service config → Qdrant vectors: configures client
src/config.py - RAG workflow router → Conversation summary: runs first
src/graph.py - RAG workflow router → Query analysis: routes query
src/graph.py - RAG workflow router → Paper scoping: routes research
src/graph.py - RAG workflow router → Adaptive retrieval: routes scoped query
src/graph.py - RAG workflow router → Document grading: routes documents
src/graph.py - RAG workflow router → Knowledge audit: audits context
src/graph.py - RAG workflow router → Tavily search: routes gaps
src/graph.py - RAG workflow router → Research answer: routes answer
src/graph.py - RAG workflow router → Casual response: routes casual
src/graph.py - Conversation summary → Query analysis: provides history
README.md - Query analysis → Paper scoping: provides query hints
README.md - Paper scoping → Adaptive retrieval: selects papers
README.md - Adaptive retrieval → Qdrant vectors: searches chunks
src/rag/retrieval.py - Adaptive retrieval → Document grading: passes documents
README.md - Document grading → Knowledge audit: passes graded context
README.md - Knowledge audit → Tavily search: requests missing context
- Tavily search → Tavily service: searches web
src/rag/tavily_search.py - Tavily search → Research answer: adds search results
src/rag/tavily_search.py - Knowledge audit → Research answer: routes sufficient context
- Research answer → Researcher: returns answer
- Casual response → Researcher: returns reply
- Query analysis → Prompt templates: uses templates
src/rag/query_analysis.py - Research answer → Prompt templates: uses templates
src/rag/generation.py - Gradio workspace → Workflow state: creates runtime context
src/app.py - RAG workflow router → Workflow state: uses workflow state
src/graph.py - Model and service config → Tavily service: configures client
src/config.py