How ayanokojikiyotaka2010/research-paper-analyzer works
Research Paper Analyzer supports account access, a personal paper corpus, structural paper analysis and graph views, plus idea novelty checks against external literature and corpus content. The main workflows are paper submission through ingestion and persistence, then idea submission through retrieval, comparison and a graded verdict; users inspect progress and results in the Next.js app. The README documents these capabilities, while source excerpts show ingestion and novelty orchestration. Many routers and frontend pages are indexed but unsampled, so their internal call edges are omitted where evidence is unavailable.
Main entry points: ingestion_pipeline.py Ingestion orchestrator · pipeline.py Novelty orchestrator · main.py FastAPI application · retrieval.py Candidate retrieval
Components 33
Web application
- Research workspace
frontend/app - Paper views
frontend/app/papers - Idea checker views
frontend/app/ideas - Novelty results
frontend/components/novelty/NoveltyCheckView.tsx - Graph visualizations
frontend/components/graphs - API proxy routes
frontend/app/api
API and access
- FastAPI application
backend/app/main.py - Authentication
backend/app/routers/auth.py - Paper endpoints
backend/app/routers/papers.py - Idea endpoints
backend/app/routers/ideas.py
Paper ingestion
- Ingestion orchestrator
backend/app/services/ingestion_pipeline.py - Metadata sources
backend/app/services/sources - PDF parsing
backend/app/services/grobid_client.py - TEI extraction
backend/app/services/tei_parser.py - Structural decomposition
backend/app/services/structural_decomposition.py - Reference resolution
backend/app/services/reference_resolution.py - Gemini client
backend/app/services/llm/gemini_client.py - Embedding service
backend/app/services/embedding_service.py
Novelty analysis
- Novelty orchestrator
backend/app/services/novelty/pipeline.py - Idea fingerprinting
backend/app/services/novelty/fingerprint.py - Candidate retrieval
backend/app/services/novelty/retrieval.py - Candidate ranking
backend/app/services/novelty/ranking.py - Candidate comparison
backend/app/services/novelty/comparison.py - Verdict aggregation
backend/app/services/novelty/verdict.py
Corpus and graphs
- PostgreSQL corpus
backend/app/models/paper.py - Block embeddings
backend/app/models/embedding.py - Graph data builder
backend/app/services/graph_builder.py
Other components
- Researcher
- arXiv
- CrossRef
- Semantic Scholar
- GROBID
- Google Gemini
Connections 39
- Researcher → Research workspace: uses
- Research workspace → API proxy routes: submits requests
- API proxy routes → FastAPI application: proxies requests
frontend/app/api/papers/route.ts - FastAPI application → Authentication: registers router
backend/app/main.py - FastAPI application → Paper endpoints: registers router
backend/app/main.py - FastAPI application → Idea endpoints: registers router
backend/app/main.py - Paper views → API proxy routes: ingests and polls
- Idea checker views → API proxy routes: checks ideas
- Paper endpoints → Ingestion orchestrator: starts background ingestion
- Idea endpoints → Novelty orchestrator: starts background check
backend/app/services/novelty/pipeline.py - Ingestion orchestrator → Metadata sources: fetches metadata
backend/app/services/ingestion_pipeline.py - Metadata sources → arXiv: queries and downloads
backend/app/services/sources/arxiv_client.py - Metadata sources → CrossRef: resolves DOI
- Ingestion orchestrator → PDF parsing: parses PDF
backend/app/services/ingestion_pipeline.py - PDF parsing → GROBID: sends PDF
- Ingestion orchestrator → TEI extraction: parses TEI
backend/app/services/ingestion_pipeline.py - Ingestion orchestrator → Structural decomposition: tags sections
backend/app/services/ingestion_pipeline.py - Structural decomposition → Gemini client: requests decomposition
- Ingestion orchestrator → Reference resolution: resolves citations
backend/app/services/ingestion_pipeline.py - Reference resolution → CrossRef: looks up references
- Reference resolution → Semantic Scholar: fallback lookup
- Ingestion orchestrator → Embedding service: embeds blocks
backend/app/services/ingestion_pipeline.py - Ingestion orchestrator → PostgreSQL corpus: persists paper data
backend/app/services/ingestion_pipeline.py - Ingestion orchestrator → Block embeddings: stores vectors
backend/app/services/ingestion_pipeline.py - Novelty orchestrator → Idea fingerprinting: fingerprints idea
backend/app/services/novelty/pipeline.py - Novelty orchestrator → Candidate retrieval: searches sources
backend/app/services/novelty/pipeline.py - Candidate retrieval → arXiv: searches literature
- Candidate retrieval → Semantic Scholar: searches literature
- Candidate retrieval → PostgreSQL corpus: searches corpus
- Novelty orchestrator → Candidate ranking: ranks candidates
backend/app/services/novelty/pipeline.py - Novelty orchestrator → Candidate comparison: compares candidates
backend/app/services/novelty/pipeline.py - Candidate comparison → Gemini client: requests assessment
- Novelty orchestrator → Verdict aggregation: aggregates verdict
backend/app/services/novelty/pipeline.py - Novelty orchestrator → PostgreSQL corpus: records check
backend/app/services/novelty/pipeline.py - Idea checker views → Novelty results: renders results
- Novelty results → Graph visualizations: renders similarity map
frontend/components/novelty/NoveltyCheckView.tsx - Paper views → Graph visualizations: shows paper graphs
- Graph visualizations → Graph data builder: requests graph data
- Graph data builder → PostgreSQL corpus: reads claims and references