Decision
Revised
Use System One to classify text, answer yes/no questions, or score text against a rubric.X29
See the full list of decision models.
Setup
Start Ollama version 0.35.01 or later, then download Nimble:
ollama pull nimble
Nimble, Tev1, Clef, and Clef Flash are decision models. The Clef models can also judge images and require version 0.35.12 or later.
Local requests don't3 need an API key.
Ask from the terminal
ollama run answers questions about a state: text or JSON, piped in or given after the model name. Ask each question with --ask. The model answers yes or no, unless you follow the question with labels to choose from (--choice) or levels to score it on (--level).4X41
# Ask a yes/no question
ollama run nimble --ask "Is a refund being requested?" < ticket.txt
# Choose a label
ollama run nimble --ask "Which team should handle this?" \
--choice billing="Payments and refunds" \
--choice technical="Software problems" < ticket.txt
# Score on a scale, from the lowest level to the highest
ollama run nimble --ask "How urgent is this?" \
--level "Routine" \
--level "Soon" \
--level "Immediate" < ticket.txt
# Ask several questions at once
ollama run nimble --ask "Is a refund being requested?" \
--ask "Which team should handle this?" \
--choice billing="Payments and refunds" \
--choice technical="Software problems" \
--ask "How urgent is this?" \
--level "Routine" \
--level "Soon" \
--level "Immediate" < ticket.txt
# Use a JSON file as the state, and refer to its fields in backticks
ollama run nimble --ask 'Is a refund being requested in `body`?' < ticket.json
# Judge an image with Clef
ollama run clef ./receipt.png --ask "Is this a restaurant receipt?"
# Print the full response
ollama run nimble --ask "Is a refund being requested?" --format json < ticket.txt
Each answer prints on its own line. A yes/no answer shows the likelier answer and its probability, a label shows its probability, and a score shows the most likely level, its probability, and the score on the scale:
Is a refund being requested? yes 97%
Which team should handle this? billing 91%
How urgent is this? Soon 64% 1.2 / 2
Without a state, ollama run nimble opens an interactive prompt. Your first message is the state, and after that each line is a yes/no question about it, so you can paste several at once. /clear starts over.5 With --ask, each message is a new state to answer those questions about.
Choose a label?1
Put your input in state and describe the possible answers in criteria:
curl http://localhost:11434/v1/systemone \
-H 'Content-Type: application/json' \
-d '{
"model": "nimble",
"state": "Our checkout has returned 500 errors since 9am.",
"questions": {
"label": {
"type": "choice",
"instructions": "Which label fits this ticket?",
"criteria": {
"billing": "Payments and refunds",
"bug": "Software errors",
"account": "Login and account access"
}
}
}
}'
Example response:
{
"model": "nimble",
"answers": {
"label": {
"type": "choice",
"choice": "bug",
"probabilities": {"billing": 0.0125, "bug": 0.9781, "account": 0.0093},
"confidence": 0.8906
}
},
"usage": {"input_tokens": 174, "output_tokens": 1}
}
Judge an image
Clef and Clef Flash read images alongside the state. Send base64-encoded PNG, JPEG, or WebP files in images. They are shared by all questions, in request order. URLs and data URLs aren't accepted. state is still required: it holds the context for the decision.6
curl http://localhost:11434/v1/systemone \
-H 'Content-Type: application/json' \
-d '{
"model": "clef-flash",
"state": "A user took this screenshot and wants to know what it shows.",
"images": ["<base64-encoded image>"],
"questions": {
"has_ollama": {
"type": "noul",
"instructions": "Does this image contain Ollama?"
},
"app": {
"type": "choice",
"instructions": "Which application is shown in this screenshot?",
"criteria": {
"vscode": "Visual Studio Code",
"terminal": "A terminal emulator",
"browser": "A web browser",
"other": "A different application"
}
}
}
}'
Example response:
{
"model": "clef-flash",
"answers": {
"has_ollama": {"type": "noul", "noul": 0.959},
"app": {
"type": "choice",
"choice": "vscode",
"probabilities": {"vscode": 0.966, "other": 0.017, "browser": 0.010, "terminal": 0.007},
"confidence": 0.868
}
},
"usage": {"input_tokens": 677, "output_tokens": 0}
}
Use a cloud model
Clef also runs in Ollama's cloud with a paid plan or purchased usage credits. Add :cloud to the model name to send the request through a local Ollama server, version 0.40.57 or later, signed in to ollama.com:
curl http://localhost:11434/v1/systemone \
-H 'Content-Type: application/json' \
-d '{
"model": "clef:cloud",
"state": "Our checkout has returned 500 errors since 9am.",
"questions": {
"urgent": {
"type": "noul",
"instructions": "Does this ticket need attention within the hour?"
}
}
}'
Or call ollama.com directly with an API key:
curl https://ollama.com/v1/systemone \
-H "Authorization: Bearer $OLLAMA_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "clef",
"state": "Our checkout has returned 500 errors since 9am.",
"questions": {
"urgent": {
"type": "noul",
"instructions": "Does this ticket need attention within the hour?"
}
}
}'
Cloud requests accept up to 64 questions, named with up to 100 ASCII letters, digits, _, ., or -, and up to 4 images of at most 4 MiB and 16 megapixels each, 8 MiB in total. Input is limited to the model's 65,536-token context window. Longer input is rejected.8 Usage is billed per input token at the listed price.
Question types
| Type | Criteria | Result |
|---|---|---|
choice |
2–26 named options with descriptions | The most likely option and each option's probability |
noul |
Descriptions for "false" and "true" |
The probability of true, from 0 to 1 |
score |
2–10 descriptions, ordered from lowest to highest | The probability-weighted average of the zero-based levels |
For the urgency criteria below:?2
score = 0 × P(Routine) + 1 × P(Soon) + 2 × P(Immediate)
For choice and score, confidence measures how strongly the model favors one answer over the others, from 0 to 1. A higher value doesn't9 guarantee the answer is correct.
Ask multiple questions
Combine question types in one request. Here, both questions use the same ticket:
curl http://localhost:11434/v1/systemone \
-H 'Content-Type: application/json' \
-d '{
"model": "nimble",
"state": {"ticket": "I was charged twice. Please refund the extra payment."},
"questions": {
"refund": {
"type": "noul",
"instructions": "Is the customer requesting a refund?",
"criteria": {
"false": "No refund is requested",
"true": "The customer requests a refund"
}
},
"urgency": {
"type": "score",
"instructions": "How urgently does this ticket need a response?",
"criteria": [
"Routine: no time pressure",
"Soon: a customer is inconvenienced",
"Immediate: a critical service is unavailable"
]
}
}
}'
This returns a refund probability of 0.9989 and an urgency score of 0.8308 on the 0–2 scale (rounded). Results can vary with the model and configuration.
See the API reference for request fields, limits, errors, and token usage.X7
Notes on this page
1 Wording Audit: improved Writes "version" before the number in prose.
Was:
v0.35.0VersionWord2 Wording Audit: improved Writes "version" before the number in prose.
Was:
v0.35.1VersionWord3 Wording Audit: improved Uses the contraction "don't".
Was:
do not needContractions4 Wording Audit: improved Replaces the passive "It is answered" with the active "The model answers", and names what the labels and levels follow.
Was:
It is answered yes or no, unless you follow it with labels to choose from (--choice) or levels to score it on (--level).PronounContractionsprin-plain-words5 Wording Audit: improved Uses a period instead of a semicolon.
Was:
so you can paste several at once;/clearstarts over.Semicolon6 Wording Audit: improved Replaces a semicolon and an em dash with a period and a colon, and uses "aren't".
Was:
inimages; they are shared by all questions, in request order. URLs and data URLs are not accepted.stateis still required — it holds the context for the decision.EmDashSemicolonContractions7 Wording Audit: improved Writes "version" before the number in prose.
Was:
v0.40.5VersionWord8 Wording Audit: improved Splits the sentence at the semicolon into two sentences.
Was:
Input is limited to the model's 65,536-token context window; longer input is rejected.Semicolon9 Wording Audit: improved Uses the contraction "doesn't".
Was:
does not guaranteeContractions
Questions for the owner
?1 The page covers the terminal, the API for choice and score questions, images, and the cloud; should these become separate task pages?
About: “## Choose a label”
?2 "Below" could point to the
--levelexample or to the multiple-questions request; which criteria does this formula use?About: “For the urgency criteria below:”
X7 Decision page links to a missing API reference page. The Decision page sends readers to /api/systemone for fields, limits and errors, but no such page exists, and no API Reference page covers /v1/systemone. Should an /api/systemone reference page be added, or should this link point somewhere else?
Pages: Decision
X29 Decision feature also called System One. The capability page, nav and CLI reference call it Decision, while the cloud pages call the same feature System One. Which name should readers see, and should the other be introduced once as an alias?
Pages: Decision, CLI reference, Run cloud models, Create an API key
X41 Decision and speech CLI examples in the CLI reference. The CLI reference repeats the --ask, --choice, --level and --voice examples from the Decision and Speech pages. Should the CLI reference keep one line each and link to the capability pages?
Pages: CLI reference, Decision, Speech
Original
Use System One to classify text, answer yes/no questions, or score text against a rubric.
See the full list of decision models.
Setup
Start Ollama v0.35.0 or later, then download Nimble:
ollama pull nimble
Nimble, Tev1, Clef, and Clef Flash are decision models. The Clef models can also judge images and require v0.35.1 or later.
Local requests do not need an API key.
Ask from the terminal
ollama run answers questions about a state: text or JSON, piped in or given after the model name. Ask each question with --ask. It is answered yes or no, unless you follow it with labels to choose from (--choice) or levels to score it on (--level).
# Ask a yes/no question
ollama run nimble --ask "Is a refund being requested?" < ticket.txt
# Choose a label
ollama run nimble --ask "Which team should handle this?" \
--choice billing="Payments and refunds" \
--choice technical="Software problems" < ticket.txt
# Score on a scale, from the lowest level to the highest
ollama run nimble --ask "How urgent is this?" \
--level "Routine" \
--level "Soon" \
--level "Immediate" < ticket.txt
# Ask several questions at once
ollama run nimble --ask "Is a refund being requested?" \
--ask "Which team should handle this?" \
--choice billing="Payments and refunds" \
--choice technical="Software problems" \
--ask "How urgent is this?" \
--level "Routine" \
--level "Soon" \
--level "Immediate" < ticket.txt
# Use a JSON file as the state, and refer to its fields in backticks
ollama run nimble --ask 'Is a refund being requested in `body`?' < ticket.json
# Judge an image with Clef
ollama run clef ./receipt.png --ask "Is this a restaurant receipt?"
# Print the full response
ollama run nimble --ask "Is a refund being requested?" --format json < ticket.txt
Each answer prints on its own line. A yes/no answer shows the likelier answer and its probability, a label shows its probability, and a score shows the most likely level, its probability, and the score on the scale:
Is a refund being requested? yes 97%
Which team should handle this? billing 91%
How urgent is this? Soon 64% 1.2 / 2
Without a state, ollama run nimble opens an interactive prompt. Your first message is the state, and after that each line is a yes/no question about it, so you can paste several at once; /clear starts over. With --ask, each message is a new state to answer those questions about.
Choose a label
Put your input in state and describe the possible answers in criteria:
curl http://localhost:11434/v1/systemone \
-H 'Content-Type: application/json' \
-d '{
"model": "nimble",
"state": "Our checkout has returned 500 errors since 9am.",
"questions": {
"label": {
"type": "choice",
"instructions": "Which label fits this ticket?",
"criteria": {
"billing": "Payments and refunds",
"bug": "Software errors",
"account": "Login and account access"
}
}
}
}'
Example response:
{
"model": "nimble",
"answers": {
"label": {
"type": "choice",
"choice": "bug",
"probabilities": {"billing": 0.0125, "bug": 0.9781, "account": 0.0093},
"confidence": 0.8906
}
},
"usage": {"input_tokens": 174, "output_tokens": 1}
}
Judge an image
Clef and Clef Flash read images alongside the state. Send base64-encoded PNG, JPEG, or WebP files in images; they are shared by all questions, in request order. URLs and data URLs are not accepted. state is still required — it holds the context for the decision.
curl http://localhost:11434/v1/systemone \
-H 'Content-Type: application/json' \
-d '{
"model": "clef-flash",
"state": "A user took this screenshot and wants to know what it shows.",
"images": ["<base64-encoded image>"],
"questions": {
"has_ollama": {
"type": "noul",
"instructions": "Does this image contain Ollama?"
},
"app": {
"type": "choice",
"instructions": "Which application is shown in this screenshot?",
"criteria": {
"vscode": "Visual Studio Code",
"terminal": "A terminal emulator",
"browser": "A web browser",
"other": "A different application"
}
}
}
}'
Example response:
{
"model": "clef-flash",
"answers": {
"has_ollama": {"type": "noul", "noul": 0.959},
"app": {
"type": "choice",
"choice": "vscode",
"probabilities": {"vscode": 0.966, "other": 0.017, "browser": 0.010, "terminal": 0.007},
"confidence": 0.868
}
},
"usage": {"input_tokens": 677, "output_tokens": 0}
}
Use a cloud model
Clef also runs in Ollama's cloud with a paid plan or purchased usage credits. Add :cloud to the model name to send the request through a local Ollama server, v0.40.5 or later, signed in to ollama.com:
curl http://localhost:11434/v1/systemone \
-H 'Content-Type: application/json' \
-d '{
"model": "clef:cloud",
"state": "Our checkout has returned 500 errors since 9am.",
"questions": {
"urgent": {
"type": "noul",
"instructions": "Does this ticket need attention within the hour?"
}
}
}'
Or call ollama.com directly with an API key:
curl https://ollama.com/v1/systemone \
-H "Authorization: Bearer $OLLAMA_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "clef",
"state": "Our checkout has returned 500 errors since 9am.",
"questions": {
"urgent": {
"type": "noul",
"instructions": "Does this ticket need attention within the hour?"
}
}
}'
Cloud requests accept up to 64 questions, named with up to 100 ASCII letters, digits, _, ., or -, and up to 4 images of at most 4 MiB and 16 megapixels each, 8 MiB in total. Input is limited to the model's 65,536-token context window; longer input is rejected. Usage is billed per input token at the listed price.
Question types
| Type | Criteria | Result |
|---|---|---|
choice |
2–26 named options with descriptions | The most likely option and each option's probability |
noul |
Descriptions for "false" and "true" |
The probability of true, from 0 to 1 |
score |
2–10 descriptions, ordered from lowest to highest | The probability-weighted average of the zero-based levels |
For the urgency criteria below:
score = 0 × P(Routine) + 1 × P(Soon) + 2 × P(Immediate)
For choice and score, confidence measures how strongly the model favors one answer over the others, from 0 to 1. A higher value does not guarantee the answer is correct.
Ask multiple questions
Combine question types in one request. Here, both questions use the same ticket:
curl http://localhost:11434/v1/systemone \
-H 'Content-Type: application/json' \
-d '{
"model": "nimble",
"state": {"ticket": "I was charged twice. Please refund the extra payment."},
"questions": {
"refund": {
"type": "noul",
"instructions": "Is the customer requesting a refund?",
"criteria": {
"false": "No refund is requested",
"true": "The customer requests a refund"
}
},
"urgency": {
"type": "score",
"instructions": "How urgently does this ticket need a response?",
"criteria": [
"Routine: no time pressure",
"Soon: a customer is inconvenienced",
"Immediate: a critical service is unavailable"
]
}
}
}'
This returns a refund probability of 0.9989 and an urgency score of 0.8308 on the 0–2 scale (rounded). Results can vary with the model and configuration.
See the API reference for request fields, limits, errors, and token usage.
What Changed
Applied the wording checks: "version" spelled out before version numbers, contractions, and periods in place of three semicolons and one em dash. One awkward passive sentence about --ask now names who answers. Every code block, link, and table is unchanged. Questions cover the two names for the feature, the missing API reference page, the repeated CLI examples, the page's several goals, and a vague "below".
Content type: task. Each section is a job a developer does with a decision model (ask from the terminal, choose a label, judge an image, use the cloud), so the page reads as steps, not a lookup.
Automated check, original: 0 errors, 4 warnings, 7 suggestions. Revised: 0 errors, 0 warnings, 0 suggestions.
Independent audit (GPT-6): improved. The listed edits make the prose clearer and follow the cited wording rules without changing the page’s meaning. The revision preserves the visible code blocks and link targets, and flags its open structure and wording questions for the owner.
Wording (9)
- 1 Writes "version" before the number in prose. improved
- 2 Writes "version" before the number in prose. improved
- 3 Uses the contraction "don't". improved
- 4 Replaces the passive "It is answered" with the active "The model answers", and names what the labels and levels follow. improved
- 5 Uses a period instead of a semicolon. improved
- 6 Replaces a semicolon and an em dash with a period and a colon, and uses "aren't". improved
- 7 Writes "version" before the number in prose. improved
- 8 Splits the sentence at the semicolon into two sentences. improved
- 9 Uses the contraction "doesn't". improved