How prazeina/research-buddy works
The Research Synthesizer is a paper-library RAG application with local CLI and Streamlit interfaces plus a hosted demo mode. Users add PDFs, which are extracted, page-bounded into chunks, and indexed; they then query all or selected papers and receive grounded answers with page citations. The web UI also supports follow-up chat and local conversation persistence. A separate evaluation harness scores answer quality and provides a faithfulness gate. Relationships are based on the README and shown excerpts/source-index references; unsampled internals are represented only where documented.
Main entry points: core.py PDF ingestion · app.py Streamlit UI · ci_gate.py Faithfulness gate · backends.py Backend selection
Components 17
User interfaces
- Streamlit UI
app.py - CLI commands
rag.py - Chat persistence
chat_store.py
RAG and paper library
- PDF ingestion
core.py - PDF extraction and chunking
rag_utils.py - Paper registry
rag_utils.py - Chunk retrieval
core.py - Grounded answer generation
core.py - Chroma vector store
- Demo library seeding
seed.py
Runtime backends
- Backend selection
backends.py - Ollama models
- Hosted chat models
Answer evaluation
- Quality evaluation
evals/faithfullness.py - Faithfulness gate
evals/ci_gate.py
Other components
- Researcher
- Claude evaluator
Connections 23
- Researcher → Streamlit UI: asks through
README.md - Researcher → CLI commands: runs commands
README.md - Streamlit UI → PDF ingestion: adds papers
app.py - Streamlit UI → Grounded answer generation: submits questions
app.py - Streamlit UI → Chat persistence: loads and saves
app.py - CLI commands → PDF ingestion: adds papers
rag.py - CLI commands → Grounded answer generation: asks questions
rag.py - PDF ingestion → PDF extraction and chunking: extracts and chunks
core.py - PDF ingestion → Paper registry: registers papers
core.py - PDF ingestion → Chroma vector store: indexes chunks
core.py - Chunk retrieval → Chroma vector store: queries chunks
core.py - Grounded answer generation → Chunk retrieval: retrieves context
core.py - Grounded answer generation → Backend selection: requests completion
core.py - Backend selection → Ollama models: uses locally
backends.py - Backend selection → Hosted chat models: uses in demo
backends.py - Streamlit UI → Demo library seeding: seeds demo library
app.py - Demo library seeding → PDF ingestion: ingests bundled PDFs
seed.py - Quality evaluation → Grounded answer generation: collects RAG answers
evals/faithfullness.py - Quality evaluation → Claude evaluator: scores four metrics
evals/faithfullness.py - Faithfulness gate → Grounded answer generation: builds test cases
evals/ci_gate.py - Faithfulness gate → Demo library seeding: seeds demo data
evals/ci_gate.py - Faithfulness gate → Backend selection: selects mode
evals/ci_gate.py - Faithfulness gate → Claude evaluator: scores faithfulness
evals/ci_gate.py