Skip to content

Type Alias: DecisionScoreQuestion ​

ts
type DecisionScoreQuestion = {
  type: "score";
  instruction: string | LlamaText;
  criteria: readonly (string | LlamaText)[];
};

Defined in: evaluator/LlamaDecisionContext/types.ts:83

A question that can be answered by rating the input on a given scale.

See ​

Using Structured Decisions tutorial

Properties ​

type ​

ts
type: "score";

Defined in: evaluator/LlamaDecisionContext/types.ts:84


instruction ​

ts
instruction: string | LlamaText;

Defined in: evaluator/LlamaDecisionContext/types.ts:91

The instruction describing how to answer the question.

For example, How severe is this issue?.


criteria ​

ts
criteria: readonly (string | LlamaText)[];

Defined in: evaluator/LlamaDecisionContext/types.ts:106

The criteria describing the possible levels for the score.

You can set up to 10 criteria levels.

Example ​

ts
[
    "Cosmetic, no impact on functionality",
    "Broken, but there are workarounds",
    "Blocking, no workaround available"
]