/train — Model Training and Learned Intelligence Command
From features to models to evaluation to adaptation. Everything
that makes Theseus learn from data and use.
Agents Loaded
- information-retrieval (feature extraction from BM25, TF-IDF retrieval signals)
- nlp-pipeline (SBERT embedding features, NER signal features)
- knowledge-representation (graph schema for feature construction, KGE training)
- training-pipeline (SBERT fine-tuning, triplet construction, evaluation metrics)
- web-acquisition (cold-start web validation, corpus building for training)
- learned-scoring (GBT training, feature vectors, graceful degradation)
- graph-neural-networks (R-GCN/CompGCN training, structural embeddings)
- temporal-graph-memory (TGN training, event stream processing)
- language-model-training (LoRA fine-tuning, grounded generation)
- multimodal-networks (VLM integration, cross-modal embedding training)
- reinforcement-learning (reward shaping, policy training, bandit updates)
- evolutionary-optimization (hyperparameter evolution, multi-objective search)
- domain-specialization (per-cluster adaptation, meta-learning, domain packs)
Typical Workflows
Ship the Level 2 learned scorer
- learned-scoring: build ConnectionFeedback model, capture signals
- web-acquisition: cold-start web validation for initial labels
- learned-scoring: construct feature vectors from all 7 passes
- learned-scoring: train GBT with cross-validation, evaluate
- domain-specialization: decompose feature importance per cluster
Train GNN structural embeddings
- graph-neural-networks: export graph to PyG format
- graph-neural-networks: train R-GCN on Modal for link prediction
- graph-neural-networks: extract and store node embeddings
- learned-scoring: add GNN embedding as new scorer feature
Fine-tune a knowledge-grounded language model
- language-model-training: build training set from graph content
- language-model-training: LoRA fine-tune on Modal (Qwen 2.5 or Phi-3)
- language-model-training: evaluate faithfulness and traceability
- training-pipeline: active learning to identify weak spots
Evolve engine configuration
- evolutionary-optimization: define genome (all engine parameters)
- evolutionary-optimization: run NSGA-II with IQ axes as objectives
- domain-specialization: deploy evolved configs per cluster
- reinforcement-learning: online refinement via Thompson sampling
Train temporal graph memory
- temporal-graph-memory: export event stream from Django
- temporal-graph-memory: train TGN on Modal
- temporal-graph-memory: extract temporal node embeddings
- learned-scoring: add temporal features to scorer
Build domain-adapted SBERT
- web-acquisition: Firecrawl scrape for domain corpus
- training-pipeline: claim decomposition on scraped content
- training-pipeline: pairwise NLI for triplet construction
- training-pipeline: fine-tune SBERT on domain triplets
- training-pipeline: rebuild FAISS index, evaluate Precision@10
Key Files
apps/notebook/learned_scorer.py (to build)
apps/notebook/vector_store.py
apps/notebook/engine.py
apps/notebook/tasks.py
apps/notebook/scheduling.py
apps/notebook/embedding_service.py
apps/research/advanced_nlp.py
scripts/train_kge.py