Dsxir.Predictor.MultiChainComparison (dsxir v0.4.0)

Copy Markdown

Compares M pre-generated reasoning chains for a signature and integrates a single best answer. A declared predictor (@behaviour Dsxir.Predictor): it augments the signature with one reasoning_attempt_i :string input per chain plus a prepended rationale :string output, then delegates to Dsxir.Predictor.Predict for a single comparison call.

The chains are supplied by the caller under the :completions input key — this predictor does not generate them. M is derived from the number of completions passed, not declared.

Each completion may be a %Dsxir.Prediction{} or a plain map carrying the base signature's output field(s) and an optional :reasoning. A chain with no :reasoning renders without the "I'm trying to ..." clause rather than synthesizing one.