winnerchoiceConfidence per option
Answer A is better91%
Answer B is better4%
Tie5%
Playground
Which answer is more reliable? Picks the more accurate one. Swap the order of the two answers and the verdict stays the same.
{ "question": "What is the boiling point of water?", "answer_a": "At standard atmospheric pressure water boils at 100°C; higher altitude lowers the boiling point, about 70°C on Everest.", "answer_b": "Water always boils at 100°C, first measured by Einstein in Geneva in 1889."}
These two examples differ by one detail. The result changes with them.
What changedThe two answers swap places
Swap the order of the two answers and the verdict stays the same.
winnerchoiceAnswer A is betterAnswer B is betterTiefactualityscore0 · Seriously wrong1 · Clear errors2 · Mostly accurate3 · Fully accurateSet SYSTEM_ONE_API_KEY. The snippet uses a published catalog model id.
{"model":"decider-v1.1","state":{"question":"What is the boiling point of water?","answer_a":"At standard atmospheric pressure water boils at 100°C; higher altitude lowers the boiling point, about 70°C on Everest.","answer_b":"Water always boils at 100°C, first measured by Einstein in Geneva in 1889."},"questions":{"winner":{"type":"choice","instructions":"Which answer is better overall?","criteria":{"A":"Answer A is better","B":"Answer B is better","tie":"Tie"}},"factuality":{"type":"score","instructions":"Rate the factual accuracy of answer A.","criteria":["Seriously wrong","Clear errors","Mostly accurate","Fully accurate"]}}}curl "https://system-one.dev/v1/systemone" \ -H "Authorization: Bearer $SYSTEM_ONE_API_KEY" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: saved-operation-id' \ --data '{"model":"decider-v1.1","state":{"question":"What is the boiling point of water?","answer_a":"At standard atmospheric pressure water boils at 100°C; higher altitude lowers the boiling point, about 70°C on Everest.","answer_b":"Water always boils at 100°C, first measured by Einstein in Geneva in 1889."},"questions":{"winner":{"type":"choice","instructions":"Which answer is better overall?","criteria":{"A":"Answer A is better","B":"Answer B is better","tie":"Tie"}},"factuality":{"type":"score","instructions":"Rate the factual accuracy of answer A.","criteria":["Seriously wrong","Clear errors","Mostly accurate","Fully accurate"]}}}'// npm install @system-one-ai/core@0.6.0 @system-one-ai/transport-fetch@0.6.0 @system-one-ai/adapter-system-one@0.6.0import { createSystemOne, choice, score, booleanQuestion } from '@system-one-ai/core';import { systemOneAdapter } from '@system-one-ai/adapter-system-one';import { createFetchTransport } from '@system-one-ai/transport-fetch';const client = createSystemOne({ baseURL: "https://system-one.dev/v1", apiKey: process.env.SYSTEM_ONE_API_KEY!, model: "decider-v1.1", adapter: systemOneAdapter, transport: createFetchTransport(), timeoutMs: 30_000, maxRetries: 0,});const result = await client.evaluate({ state: { "question": "What is the boiling point of water?", "answer_a": "At standard atmospheric pressure water boils at 100°C; higher altitude lowers the boiling point, about 70°C on Everest.", "answer_b": "Water always boils at 100°C, first measured by Einstein in Geneva in 1889." }, questions: { winner: choice("Which answer is better overall?", { A: "Answer A is better", B: "Answer B is better", tie: "Tie", }), factuality: score("Rate the factual accuracy of answer A.", ["Seriously wrong", "Clear errors", "Mostly accurate", "Fully accurate"]), },}, { headers: { 'Idempotency-Key': crypto.randomUUID() } });result.answers.winner.choiceresult.answers.factuality.scoreresult.response.requestId;