How dmainak673-droid/edufind works
This is a research-document verification workspace: users upload papers, the backend extracts claims and citations, retrieves source evidence, and assesses claim support; the UI then exposes analysis, claim, citation, dashboard, and report views. The frontend also supports demo data and backend-health awareness. Backend relationships below follow the source index; frontend/backend route mapping is not fully established by the excerpts, so that boundary is shown as unverified rather than as a specific route call.
Main entry points: App.tsx App routing · analysis_pipeline.py Analysis orchestration · documents.py Document routes · extraction.py Extraction routes
Components 32
Research workspace UI
- App routing
src/App.tsx - Workspace state
src/context/WorkspaceContext.tsx - API client
src/api/client.ts - Verification API
src/api/verification.ts - Document upload
src/pages/UploadPage.tsx - Analysis view
src/pages/AnalysisPage.tsx - Dashboard
src/pages/DashboardPage.tsx - Claim details
src/pages/ClaimDetailsPage.tsx - Citation explorer
src/pages/CitationExplorerPage.tsx - Reports
src/pages/ReportsPage.tsx - Demo records
src/data/demoData.ts
Backend API
- FastAPI app
backend/app/main.py - Document routes
backend/app/api/routes/documents.py - Extraction routes
backend/app/api/routes/extraction.py - Analysis routes
backend/app/api/routes/analysis.py - Evidence routes
backend/app/api/routes/evidence.py - Verification routes
backend/app/api/routes/verification.py
Document analysis
- Analysis orchestration
backend/app/services/analysis_pipeline.py - PDF processing
backend/app/services/pdf_service.py - Claims and citations
backend/app/services/extraction_service.py - Evidence retrieval
backend/app/services/evidence_retrieval.py - Claim verification
backend/app/services/verification_service.py - Research providers
backend/app/services/research_providers.py - Gemini provider
backend/app/services/gemini_provider.py
State and evidence
- Database session
backend/app/db/session.py - Documents
backend/app/db/models/document.py - Claims and citations
backend/app/db/models/extraction.py - Research evidence
backend/app/db/models/research.py - Verification results
backend/app/db/models/verification.py - Uploaded files
backend/app/services/storage.py - Operation locks
backend/app/services/operation_lock.py
Other components
- Researcher
Connections 38
- Researcher → App routing: uses workspace
src/App.tsx - App routing → Workspace state: provides state
src/App.tsx - App routing → Document upload: routes to
src/App.tsx - App routing → Analysis view: routes to
src/App.tsx - App routing → Dashboard: routes to
src/App.tsx - App routing → Claim details: routes to
src/App.tsx - App routing → Citation explorer: routes to
src/App.tsx - App routing → Reports: routes to
src/App.tsx - Workspace state → Verification API: checks health
src/context/WorkspaceContext.tsx - Workspace state → Demo records: selects demo
src/context/WorkspaceContext.tsx - Document upload → Verification API: uploads document
src/pages/UploadPage.tsx - Verification API → API client: sends requests
src/api/verification.ts - Verification API → Document routes: targets upload API
- Analysis routes → FastAPI app: registered by
backend/app/main.py - Document routes → FastAPI app: registered by
backend/app/main.py - Extraction routes → FastAPI app: registered by
backend/app/main.py - Evidence routes → FastAPI app: registered by
backend/app/main.py - Verification routes → FastAPI app: registered by
backend/app/main.py - Document routes → PDF processing: extracts PDF text
backend/app/api/routes/documents.py - Document routes → Uploaded files: stores uploads
backend/app/api/routes/documents.py - Extraction routes → Claims and citations: runs extraction
backend/app/api/routes/extraction.py - Extraction routes → Analysis orchestration: starts analysis
backend/app/api/routes/extraction.py - Verification routes → Claim verification: runs verification
backend/app/api/routes/verification.py - Verification routes → Analysis orchestration: starts analysis
backend/app/api/routes/verification.py - Analysis orchestration → Claims and citations: runs extraction
backend/app/services/analysis_pipeline.py - Analysis orchestration → Evidence retrieval: retrieves evidence
backend/app/services/analysis_pipeline.py - Analysis orchestration → Claim verification: verifies claims
backend/app/services/analysis_pipeline.py - Evidence retrieval → Research providers: queries providers
backend/app/services/evidence_retrieval.py - Claim verification → Gemini provider: requests assessment
backend/app/services/verification_service.py - Document routes → Database session: uses database
backend/app/api/routes/documents.py - Extraction routes → Database session: uses database
backend/app/api/routes/extraction.py - Verification routes → Database session: uses database
backend/app/api/routes/verification.py - Analysis orchestration → Claims and citations: records stages
backend/app/services/analysis_pipeline.py - Analysis orchestration → Research evidence: records stages
backend/app/services/analysis_pipeline.py - Analysis orchestration → Verification results: records stages
backend/app/services/analysis_pipeline.py - Document routes → Operation locks: guards operations
backend/app/api/routes/documents.py - Extraction routes → Operation locks: guards operations
backend/app/api/routes/extraction.py - Verification routes → Operation locks: guards operations
backend/app/api/routes/verification.py