Skip to main content
multi is available with Krun One V1 (krun-one-v1). The Python SDK supports it from krun-ai 0.3.0 (pip install -U krun-ai); the TypeScript SDK requires @krun-ai/sdk 0.3.0 or later.
A multi question selects every option that applies to the context. Each option gets its own probability. It works with text and with multimodal inputs.

Example

The answer has the selected option ids and a probability per option (values below are illustrative):

Question fields

Answer fields

The probabilities are independent: they don’t sum to 1. Several options can be close to 1, or none can. To use your own threshold instead of values, read probabilities directly.

Multi, choice or noul

  • Exactly one option applies: choice.
  • Any number of options can apply: multi.
  • A single yes/no proposition: noul.