Skip to main content

MoE Orchestrator for Document Classification.

Coordinates the full classification pipeline:

  1. Run all analysts in parallel
  2. Calculate consensus from votes
  3. Run judges for validation
  4. Produce final classification with audit trail

Per ADR-019: Multi-agent orchestration with parallel execution.

File: orchestrator.py

Classes

OrchestratorConfig

Configuration for the MoE orchestrator.

OrchestratorStats

Statistics from orchestration run.

MoEOrchestrator

Mixture of Experts Orchestrator for document classification.

Functions

create_default_orchestrator()

Create an orchestrator with default analysts and judges.

classify(document)

Classify a single document through the full MoE pipeline.

classify_batch(documents, progress_callback)

Classify multiple documents.

get_stats()

Get orchestrator statistics.

reset_stats()

Reset statistics.