How lamm-mit/protagents works
Project Type and Purpose
• Type: Python-based research platform combining multi-agent orchestration, LLMs, physics simulations, and vector-store memory.
• Purpose: Automate de novo protein sequence and structure generation, physics-based analysis (natural frequencies, unfolding forces), and property prediction via a pre-trained autoregressive transformer.
File Structure
• Core orchestration:
• agents.py: defines and coordinates AI agents
• agent_functions.py: implements agent capabilities (sequence generation, simulation, analysis)
• Model interface:
• ForceGPT.py: wrapper around the pre-trained transformer predicting mechanical properties
• Configuration:
• llm_config.py: OpenAI API key configuration
• Data & Memory:
• protein_force_index/ (Chroma vector store and metadata JSON files)
• Utilities and experiments:
• utils.py: shared helper functions
• exp1.ipynb, exp2.ipynb, exp3.ipynb: Jupyter notebooks driving each experiment
README Insights
• Multi-agent LLM environment with dynamic collaboration
• External dependencies: OpenAI API, Chroma vector store, pre-trained transformer model path
• Workflow steps: retrieval (Chroma), generation (LLM), physics simulation, property prediction (ForceGPT)
Relationships & Data Flows
• Notebooks → Orchestrator (agents.py) via Python calls
• Orchestrator → Agent Functions (agent_functions.py)
• Agent Functions →
– OpenAI API for LLM calls
– Chroma for retrieving/storing embeddings & documents
– Physics simulation modules for structural analysis
– ForceGPT module for property prediction
• Results flow back up from each service to the orchestrator → notebooks → user
Architectural Patterns & Principles
• Modular multi-agent pattern – each agent encapsulates one domain of expertise
• “Separation of concerns” – distinct layers for orchestration, model inference, memory, simulation
• Externalized configuration – credentials and model paths kept in llm_config.py
• Data-driven workflow – intermediate results persist in Chroma for auditability and retrievability