ComfyUI Node

Typed Decision

Answers one typed question about the images and state with calibrated probabilities.

By nomadoor·Created 5 days ago·Updated 4 days ago· 8
Typed Decision
  • model
  • images
  • value
  • label
  • index
  • pass
  • abstained
  • result
◄mode▾►
◄state►
◄threshold0.50►
◄debiasfalse►
◄calibrationtrue►
Categorytyped decision

Inputs (7)

NameTypeDefaultDescription
modeCOMBOnoul: true or false. choice: pick one option. score: rate on ordered levels. Write in English.
modelTYPED_DECISION_MODEL—
stateSTRINGWith JSON, instructions can name its fields in `backticks`, e.g. `listing.color`.
thresholdFLOAT0.500–10pass is true when value >= threshold and the model did not abstain.
debiasBOOLEANfalseAverage over up to 4 option orders to cancel position bias. Slower, and changes little in practice.
calibrationBOOLEANtrueApply the model's temperature calibration. Changes probabilities, never the answer.
imagesoptCOMFY_AUTOGROW_V3Images looked at together, in slot order. imajev: first = reference, second = the one to judge.

Outputs (6)

NameTypeDescription
valueFLOATnoul: probability the claim is true (0-1). choice: probability of the chosen option (0-1). score: expected level, 0 = first line (not a probability).
labelSTRINGThe answer: yes / no, the chosen option, or the most likely level. Not affected by threshold.
indexINTnoul: yes = 1, no = 0. choice / score: line number of the answer, from 0.
passBOOLEANTrue when value >= threshold and the model did not abstain. Use it to branch.
abstainedBOOLEANTrue when the images and state are not enough to answer, e.g. to send the case to a person.
resultSTRINGFull answer as JSON, in the official Jev shape: every probability, unknown probability, confidence.