AI-Assisted Biotech Method Development Platform
Invictus is a full-stack platform for semi-automated, literature-backed method design and optimization for biotech R&D. The system follows a 12-step workflow from PIF capture through troubleshooting, supporting 5 project types:
- Protein Purification
- Fermentation Optimization
- Strain Engineering
- Assay Development
- HPLC Method Development
- Backend: FastAPI + LangGraph + PostgreSQL (pgvector)
- Frontend: Next.js 14 (App Router) + Tailwind CSS + Radix UI
- AI: OpenAI/Anthropic/Azure (configurable) + LangChain
- Orchestration: LangGraph with human-in-the-loop gates
prototype-biowizard/
├── backend/ # FastAPI application
│ ├── app/
│ │ ├── api/ # REST endpoints
│ │ ├── models/ # SQLAlchemy models
│ │ ├── workflow/ # LangGraph workflow
│ │ ├── ai/ # LLM and extraction pipeline
│ │ └── ...
│ ├── migrations/ # Alembic migrations
│ └── tests/
├── frontend/ # Next.js application
│ └── src/
│ ├── app/ # Pages and routes
│ ├── components/ # React components
│ └── lib/ # Utilities and API client
├── libraries/ # Reference data (JSON)
│ ├── pif/ # PIF schemas
│ ├── parameters/ # Parameter tables
│ ├── micro_protocols/ # Protocol library
│ └── kpi/ # KPI definitions
├── prompts/ # System prompts (12 steps)
└── docs/ # Documentation
- Docker and Docker Compose
- (For local development) Python 3.11+ and Node.js 20+
-
Clone the repository
-
Copy
.env.exampleto.envand add your API keys:cp .env.example .env # Edit .env and add your OPENAI_API_KEY or ANTHROPIC_API_KEY -
Start the services:
docker-compose up
-
Access the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
cd backend
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run migrations
alembic upgrade head
# Start the server
uvicorn app.main:app --reloadcd frontend
# Install dependencies
npm install
# Start the dev server
npm run dev- Capture PIF: Collect project information from user
- Normalize PIF: Standardize field names and values
- Infer Missing: Fill in missing PIF fields with AI
- Validate PIF: Human review gate for inferred values
- Literature Search: Find and rank papers by parameter coverage
- Parameter Extraction: Extract values from literature with verification
- MCM Construction: Build Method Configuration Matrix (single-choice)
- Feasibility Review: Human review gate, re-extract rejected parameters
- EP Assembly: Assemble Experimental Protocol from micro protocols
- ETR Generation: Generate Experimental Trial Record template
- KPI Evaluation: Calculate KPIs from trial results
- Troubleshooting: Map problems to solutions, iterate or finalize
User review and approval at critical steps:
- Step 4: PIF validation
- Step 7-8: MCM review and re-extraction
- Step 10: ETR submission
- Step 12: Iteration decision
Strict priority order for parameter selection:
- PIS (Primary Information Source)
- Reference (papers cited by PIS)
- SIS (Supplementary Information Source)
- Inferred (AI estimation, only as last resort)
Multi-stage verification for accuracy:
- Section parsing
- Structured LLM extraction
- Two-pass verification
- Quote verification (embedding similarity)
- Unit normalization
- Range validation
Complete traceability:
- All AI decisions logged
- Provenance for every parameter
- Token usage tracking
- Error logging
See .env.example for all configuration options. Key variables:
# Required
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/invictus
OPENAI_API_KEY=sk-... # Or ANTHROPIC_API_KEY
# Optional
LLM_PROVIDER=openai # openai, anthropic, or azure
DEBUG=false# Backend tests
cd backend
pytest
# Frontend tests
cd frontend
npm testPhase 1 (Foundation) - ✅ Complete:
- Backend scaffolding
- Frontend scaffolding
- Docker Compose setup
- Database schema
- Environment configuration
Next Steps:
- Library system (JSON schemas)
- Prompt library (12 step prompts)
- LangGraph workflow engine
- Workflow step implementations
- Frontend UI components
- Testing and deployment
- Implementation Plan - Complete technical specification
- Plan Overview - High-level build plan
Proprietary - All rights reserved
For issues and questions, please contact the development team.