How samverse11/clara-ai-research-assistant works
Research Platform is a web application for discovering, translating, summarizing, and comparing academic papers, with authenticated user history. Its main workflow runs from the React interface through the API gateway to paper retrieval or document-processing services, then returns results to the user. The README documents broader capabilities such as RAG analysis and formula extraction; these are represented at subsystem level where source excerpts are limited. Edges reflect shown calls, imports, or README architecture statements; unsampled implementation details are not inferred.
Main entry points: App.js React application · app/main.py API gateway · app/main.py Paper retrieval · api.js API client
Components 24
Web interface
- React application
frontend/src/App.js - Paper search
frontend/src/pages/SearchPage.js - Summarize papers
frontend/src/pages/SummarizePage.js - Translate papers
frontend/src/pages/TranslatePage.js - Compare papers
frontend/src/pages/AnalyzePage.js - Research dashboard
frontend/src/pages/DashboardPage.js - Session context
frontend/src/context/AuthContext.js - API client
frontend/src/services/api.js
API orchestration
- API gateway
backend/api_gateway/app/main.py
Paper discovery
- Paper retrieval
backend/crawler/app/main.py - Source fetchers
backend/crawler/app/services/multi_source_fetcher.py - Semantic ranking
backend/crawler/app/services/embeddings.py - Vector search
backend/crawler/app/services/vector_store.py - Paper schemas
backend/crawler/app/models.py
Document intelligence
- Multi-paper analysis
backend/analyzer/app/main.py - Formula extraction
backend/analyzer/app/nougat_extractor.py - Document processing
backend/summarization/app/main.py - Summary services
backend/summarization/app/services.py
Accounts and history
- Authentication
backend/auth/main.py - JWT handling
backend/auth/jwt_handler.py - User history
backend/history/main.py - Shared data models
backend/shared/models.py - SQLite database
backend/shared/database.py
Other components
- Researcher
Connections 32
- Researcher → React application: uses
- React application → Paper search: routes to
frontend/src/App.js - React application → Summarize papers: routes to
frontend/src/App.js - React application → Translate papers: routes to
frontend/src/App.js - React application → Compare papers: routes to
frontend/src/App.js - React application → Research dashboard: routes to
frontend/src/App.js - React application → Session context: uses
frontend/src/App.js - Paper search → API client: requests
frontend/src/pages/SearchPage.js - Summarize papers → API client: requests
frontend/src/pages/SummarizePage.js - Translate papers → API client: requests
frontend/src/pages/TranslatePage.js - Compare papers → API client: requests
frontend/src/pages/AnalyzePage.js - Research dashboard → API client: requests
frontend/src/pages/DashboardPage.js - API client → API gateway: calls
frontend/src/services/api.js - API gateway → Paper retrieval: routes to
backend/api_gateway/app/main.py - API gateway → Multi-paper analysis: routes to
backend/api_gateway/app/main.py - API gateway → Document processing: routes to
backend/api_gateway/app/main.py - API gateway → Authentication: routes to
backend/api_gateway/app/main.py - API gateway → User history: routes to
backend/api_gateway/app/main.py - Paper retrieval → Source fetchers: fetches papers
backend/crawler/app/main.py - Paper retrieval → Vector search: searches vectors
backend/crawler/app/main.py - Paper retrieval → Vector search: stores vectors
backend/crawler/app/main.py - Paper retrieval → Semantic ranking: embeds papers
backend/crawler/app/main.py - Paper retrieval → Paper schemas: uses schemas
backend/crawler/app/main.py - Multi-paper analysis → Semantic ranking: uses embeddings
backend/analyzer/app/main.py - Multi-paper analysis → Formula extraction: uses extraction
backend/analyzer/app/main.py - Document processing → Summary services: calls services
backend/summarization/app/main.py - Authentication → JWT handling: creates tokens
backend/auth/main.py - Authentication → SQLite database: reads and writes
backend/auth/main.py - User history → SQLite database: reads and writes
backend/history/main.py - User history → Shared data models: uses models
backend/history/main.py - Document processing → SQLite database: stores history
backend/summarization/app/main.py - SQLite database → Shared data models: maps tables
backend/shared/database.py