How peterkaberia/atelier-scholar works
Atelier is a local academic literature copilot. A user submits a research question in the Dash app; a resumable pipeline plans engine-specific queries, searches academic sources, ranks papers, extracts evidence, and generates a cited synthesis. Follow-up chat can reuse the session library or invoke a research agent; the app also supports uploads, paper summaries, exports, and encrypted settings. The README documents these product flows; source excerpts and the SOURCE INDEX confirm selected implementation links, while unsampled internals are represented only where documented.
Main entry points: repository.py Research repository · engine.py LLM engine · fetchers.py Paper retrieval · library.py Evidence library
Components 28
Dash interface
- Dash application
app.py - Question and search UI
ui/callbacks/search.py - Follow-up chat
ui/callbacks/chat.py - Evidence library
ui/callbacks/library.py - Upload interface
ui/callbacks/uploads.py - Settings
ui/callbacks/settings.py - Research feed
ui/layouts/feed.py
Research pipeline
- Run orchestrator
pipeline/orchestrator.py - Checkpointed graph
pipeline/graph.py - Query planning
pipeline/nodes.py - Evidence extraction
pipeline/nodes.py - Cited synthesis
pipeline/nodes.py - Investigation agent
pipeline/agent.py - Investigation tools
pipeline/agent_tools.py - Document processing
pipeline/uploads.py
Retrieval and ranking
- Paper retrieval
search/fetchers.py - Quality-weighted ranking
search/sparse_encoder.py - Full-text retrieval
search/paper.py
Knowledge and persistence
- Research repository
database/repository.py - SQLite database
database/database.py - Research records
database/models.py
LLM and outputs
- LLM engine
llm/engine.py - Model catalog
llm/model_catalog.py - Citation export
core/export.py - PDF export
core/pdf_export.py
Other components
- Researcher
- Six academic engines
- LLM providers
Connections 38
- Researcher → Dash application: uses
- Dash application → Question and search UI: routes question
app.py - Question and search UI → Run orchestrator: starts run
ui/callbacks/search.py - Run orchestrator → Checkpointed graph: runs graph
pipeline/orchestrator.py - Checkpointed graph → Query planning: dispatches
pipeline/graph.py - Query planning → Paper retrieval: plans retrieval
- Paper retrieval → Six academic engines: searches
- Paper retrieval → Quality-weighted ranking: returns candidates
search/fetchers.py - Quality-weighted ranking → Evidence extraction: ranks papers
pipeline/nodes.py - Evidence extraction → LLM engine: extracts evidence
pipeline/nodes.py - Evidence extraction → Research repository: stores findings
pipeline/nodes.py - Cited synthesis → LLM engine: generates answer
pipeline/nodes.py - Cited synthesis → Research repository: stores turn
- Run orchestrator → Cited synthesis: coordinates synthesis
- Paper retrieval → Full-text retrieval: fetches full text
search/fetchers.py - Full-text retrieval → Research repository: stores chunks
database/repository.py - Follow-up chat → Investigation agent: starts investigation
pipeline/agent.py - Investigation agent → Investigation tools: calls tools
pipeline/agent.py - Investigation tools → Paper retrieval: searches papers
pipeline/agent_tools.py - Investigation tools → Full-text retrieval: retrieves text
- Investigation agent → LLM engine: reasons with
pipeline/agent.py - Follow-up chat → LLM engine: answers follow-up
ui/callbacks/chat.py - Upload interface → Document processing: submits files
ui/callbacks/uploads.py - Document processing → Research repository: stores records
pipeline/uploads.py - Evidence library → Research repository: loads papers
ui/callbacks/library.py - Evidence library → LLM engine: summarizes paper
- Evidence library → Citation export: exports citations
ui/callbacks/library.py - Evidence library → PDF export: exports turn
ui/callbacks/library.py - Settings → Model catalog: lists models
ui/callbacks/settings.py - Settings → Research repository: saves keys
- LLM engine → LLM providers: calls model
- Model catalog → LLM providers: queries catalogs
llm/model_catalog.py - Research repository → SQLite database: uses sessions
database/repository.py - Research repository → Research records: reads and writes
database/repository.py - SQLite database → Research records: persists entities
- Run orchestrator → Research repository: checkpoints state
- Research feed → Research repository: renders history
ui/layouts/feed.py - Question and search UI → Research feed: updates results