Technical Deep Dive
1. Core Architecture
Framework Foundation
High-Level System Design
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Data Sources │ │ Core Services │ │ Storage Layer │
│ │ │ │ │ │
│ • Google Drive │───▶│ • Hypothesis │───▶│ • PostgreSQL │
│ • PDF Papers │ │ Generation │ │ • Oxigraph │
│ • SPARQL KG │ │ • Paper Process │ │ • OriginTrail │
└─────────────────┘ │ • DKG Interface │ │ DKG │
└─────────────────┘ └─────────────────┘Key Components
2. Project Structure
3. The Plugin System
Plugin Architecture
Plugin Components
Actions (src/bioagentPlugin/actions/)
src/bioagentPlugin/actions/)Services (src/bioagentPlugin/services/)
src/bioagentPlugin/services/)Routes (src/bioagentPlugin/routes/)
src/bioagentPlugin/routes/)4. Database & Schemas
Database Setup
Core Schemas (src/db/schemas/)
src/db/schemas/)Hypotheses Table (hypotheses.ts)
hypotheses.ts)File Metadata Table (fileMetadata.ts)
fileMetadata.ts)Drive Sync Table (driveSync.ts)
driveSync.ts)5. Configuration & Deployment
Environment Variables (src/config.ts)
src/config.ts)Database Configuration
AI Services
Knowledge Graph Integration
External Services
Local Development Setup
Production Deployment
6. Key Dependencies
Core Framework
Database & Storage
Document Processing
AI & Language Processing
External Integrations
7. Data Processing Pipelines
Scientific Paper Processing Pipeline
Hypothesis Generation Pipeline
Knowledge Graph Integration
Last updated