Parallelize
Run subtasks simultaneously and aggregate
Mechanism
Runs multiple LLM calls simultaneously and aggregates results. Two modes: Sectioning (split Task into independent subtasks, run in Parallel, merge) and Voting (run same Task multiple times, Aggregate via majority Mode or selection). Trades compute cost for speed and/or confidence. It spawns concurrent execution threads and employs Aggregate to unify the results into a final Result.
Invariants
- Independence: no subtask reads another subtask's output.
- Aggregation is chosen before fan-out, and subtasks are shaped to produce outputs it accepts.
Signature
- Parallel(Task)
- Aggregate(Result)
Preconditions
- Batch of tasks
- Multiple workers
Postconditions
- All results aggregated, or the unaggregatable ones reported as such
Failure modes
- Merge Conflicts: Parallel outputs are incompatible and can't be combined.
- Unanimous Wrong: All parallel paths make the same error.
- Aggregation CognitiveBias: Merge Strategy systematically favors certain outputs.
Where this came from
—
Builds on
- Parallel references
- Strategy references
- Result references
- Mode references
- CognitiveBias references
- Aggregate composes_with
- Task accepts
Used by
- DAG references
- FabricSharding references
Identity
- Ref:
Parallelize#53a5 - Hash: sema:Parallelize#mh:SHA-256:53a54fc8c6c719497cade703e7153f188faf393a54259d62079ea3a38b5092fd
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository