How sami210105/scholar-press works
Scholar Press accepts research-paper PDFs, builds a session-specific searchable index, compares papers and extracts per-paper methodologies, then presents a report with comparison, flowchart, deep-dive and citation views. The graph follows the evidenced orchestration and UI relationships; some backend routes and unsampled subsystem internals are known only through the source index, so their detailed connections are omitted.
Main entry points: report.py Session and report · ReportPage.jsx Report view · extractor.py Methodology extraction · CitationModal.jsx Citation modal
Components 24
Web experience
- App shell
frontend/src/App.jsx - Upload workflow
frontend/src/pages/HomePage.jsx - API client
frontend/src/api/client.js - Report view
frontend/src/pages/ReportPage.jsx - Paper views
frontend/src/components/PapersStrip.jsx - Comparison table
frontend/src/components/ComparisonTable.jsx - Agreement section
frontend/src/components/AgreementSection.jsx - Flowchart view
frontend/src/components/FlowchartView.jsx - Paper deep dive
frontend/src/components/PaperDeepDive.jsx - Citation modal
frontend/src/components/CitationModal.jsx
Analysis orchestration
- Backend API
backend/main.py - Session and report
backend/report.py - Session files
backend/sessions
Paper indexing
- PDF loading
backend/ingestion/loader.py - Text chunking
backend/ingestion/chunker.py - Chunk embeddings
backend/ingestion/embedder.py - Semantic retrieval
backend/retrieval/retriever.py
Research analysis
- Paper comparison
backend/llm/comparator.py - Methodology extraction
backend/llm/extractor.py - Flowchart generation
backend/llm/flowchart.py - Analysis prompts
backend/llm/prompts.py - Evaluation criteria
backend/llm/okf_loader.py
Other components
- Researcher
- Ollama service
Connections 29
- Researcher → App shell: uses
- App shell → Upload workflow: shows
frontend/src/App.jsx - Upload workflow → API client: requests
frontend/src/pages/HomePage.jsx - API client → Backend API: calls HTTP routes
frontend/src/api/client.js - Backend API → Session and report: delegates
backend/main.py - Session and report → Session files: writes and reads
backend/report.py - Session and report → PDF loading: loads PDFs
backend/report.py - Session and report → Text chunking: chunks documents
backend/report.py - Session and report → Chunk embeddings: embeds chunks
backend/report.py - Session and report → Semantic retrieval: retrieves chunks
backend/report.py - Session and report → Paper comparison: compares papers
backend/report.py - Session and report → Methodology extraction: extracts methods
backend/report.py - Session and report → Flowchart generation: generates charts
backend/report.py - Paper comparison → Semantic retrieval: uses retrieval
backend/llm/comparator.py - Paper comparison → Analysis prompts: uses prompts
backend/llm/comparator.py - Methodology extraction → Analysis prompts: builds prompt
backend/llm/extractor.py - Methodology extraction → Ollama service: sends chat request
backend/llm/extractor.py - Analysis prompts → Evaluation criteria: loads criteria
backend/llm/prompts.py - Flowchart generation → Methodology extraction: uses extracted method
backend/llm/flowchart.py - Backend API → Report view: returns report
- Report view → Paper views: renders
frontend/src/pages/ReportPage.jsx - Report view → Comparison table: renders
frontend/src/pages/ReportPage.jsx - Report view → Agreement section: renders
frontend/src/pages/ReportPage.jsx - Report view → Flowchart view: renders
frontend/src/pages/ReportPage.jsx - Report view → Paper deep dive: opens
frontend/src/pages/ReportPage.jsx - Agreement section → Citation modal: opens citations
frontend/src/components/AgreementSection.jsx - Comparison table → Citation modal: opens citations
frontend/src/components/ComparisonTable.jsx - Paper deep dive → Citation modal: opens citations
frontend/src/components/PaperDeepDive.jsx - Citation modal → API client: fetches chunk
frontend/src/components/CitationModal.jsx