How tanushg07/citeguard works
CiteGuard is a research-citation verification application: a user submits a paper, then reviews citation-by-citation judgments traced to passages from identified sources. The documented workflow parses the whole paper, associates sentence-local claims with references, checks source identity, retrieves and reranks source passages, applies NLI and numerical checks, and produces a report with JSON/CSV export. The graph also includes the frontend, job/report API, and evaluation capability. Detailed stage links follow the README; some internal calls are only established by the orchestrator’s imports, so unsampled implementation details are not expanded.
Main entry points: orchestrator.py Pipeline orchestrator · verifier.py Claim verification · routes.py Job and report API · api.ts API client
Components 23
User interface
- CiteGuard UI
citeguard-frontend/src/App.tsx - Upload and progress
citeguard-frontend/src/components/ProcessingView.tsx - Results dashboard
citeguard-frontend/src/components/DashboardView.tsx - API client
citeguard-frontend/src/services/api.ts
Paper and claims
- Document structure parser
app/services/document_parser.py - Claim and citation extraction
app/services/extractor.py - Pipeline orchestrator
app/services/orchestrator.py
Source discovery
- Bibliography enrichment
app/services/reference_metadata.py - Crossref enrichment
backend/modules/citation_extractor.py - Source identity resolver
app/services/source_resolver.py - PDF retrieval and cache
app/services/downloader.py
Evidence and decisions
- Passage retrieval and reranking
app/services/retriever.py - Claim verification
app/services/verifier.py - NLI model
backend/modules/nli_verifier.py - Numerical checks
app/services/numerical.py
Reports and evaluation
- Job and report API
app/api/routes.py - Analysis schemas
app/core/schemas.py - Persisted report and exports
app/core/models.py - Evaluation metrics
app/evaluation/evaluator.py
Other components
- Researcher
- Scholarly metadata services
- Public source PDFs
- Optional Groq explanations
Connections 27
- Researcher → CiteGuard UI: submits paper
- CiteGuard UI → Upload and progress: opens analysis
citeguard-frontend/src/App.tsx - Upload and progress → API client: requests analysis
citeguard-frontend/src/services/api.ts - API client → Job and report API: calls API
- Job and report API → Pipeline orchestrator: runs job
app/api/routes.py - Pipeline orchestrator → Document structure parser: parses document
app/services/orchestrator.py - Document structure parser → Claim and citation extraction: splits sentences
app/services/document_parser.py - Pipeline orchestrator → Claim and citation extraction: extracts claims
app/services/orchestrator.py - Pipeline orchestrator → Source identity resolver: resolves references
app/services/orchestrator.py - Source identity resolver → Bibliography enrichment: checks identity
app/services/source_resolver.py - Bibliography enrichment → Crossref enrichment: enriches metadata
app/services/reference_metadata.py - Bibliography enrichment → Scholarly metadata services: queries providers
- Source identity resolver → PDF retrieval and cache: retrieves PDFs
app/services/source_resolver.py - PDF retrieval and cache → Public source PDFs: fetches source
- Pipeline orchestrator → Passage retrieval and reranking: retrieves evidence
app/services/orchestrator.py - Passage retrieval and reranking → Claim verification: provides passages
- Pipeline orchestrator → Claim verification: verifies claims
app/services/orchestrator.py - Claim verification → NLI model: checks entailment
app/services/verifier.py - Claim verification → Numerical checks: checks quantities
app/services/verifier.py - Claim verification → Optional Groq explanations: requests explanations
- Pipeline orchestrator → Persisted report and exports: builds results
app/services/orchestrator.py - Job and report API → Persisted report and exports: persists and exports
app/api/routes.py - API client → Results dashboard: loads results
citeguard-frontend/src/components/DashboardView.tsx - Results dashboard → Researcher: shows judgments
- Job and report API → Analysis schemas: validates responses
- Evaluation metrics → Pipeline orchestrator: evaluates outputs
app/evaluation/evaluator.py - API client → Job and report API: requests metrics
citeguard-frontend/src/services/api.ts