Update: Added a description of the response fields, the example response Ollama published, and a list of the prompt and request limits.
Ollama 0.35 adds a local decision API for choosing labels, answering yes/no questions, and scoring text. You can use it to route a support message to billing or technical support without asking a chatbot to write an explanation. This guide sends one made-up ticket to the nimble:9b-q4_K_M model and reads back a label. For real tickets, send each one with the same list of categories and compare the results with a sample of tickets your team has already labelled before anything acts on them automatically.
Ollama announced the feature on September 29. The practical change is the new /v1/systemone endpoint. Your application supplies the allowed outcomes, and the response uses named fields that a script can read.
Before you start
- Install or update Ollama using the installation guide. The running server must be 0.35.0 or newer.
- Have enough free disk space and memory for the model and its working state.
nimble:9b-q4_K_Mis a 5.6 GB download, with Q4_K_M quantization. Use the hardware checker to understand memory headroom. - Use Terminal on Mac/Linux or PowerShell on Windows. Start the Ollama app, or your existing Linux service, before making requests.
- Keep the service on its default loopback address. This recipe calls
127.0.0.1:11434on your own computer.
This local recipe uses a GGUF decision model with the local scoring runner. Use the GGUF tag, not Nimble's MLX tags or a cloud model.
1. Download the exact model
Run these commands:
ollama --version
ollama pull nimble:9b-q4_K_M
ollama list
Look for nimble:9b-q4_K_M in the list. Nimble is a roughly 9B model from Bespoke Labs, based on Qwen3.5; its listed license is Apache 2.0. The explicit tag selects the smaller GGUF variant instead of the changing default tag.
2. Save a complete decision request
Create a plain-text file named ticket.json in your working folder and paste this JSON:
{
"model": "nimble:9b-q4_K_M",
"state": {
"ticket": "I paid for the same order twice. Please refund the second payment."
},
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Duplicate payments, charges, or refunds",
"technical": "Software faults or broken integrations",
"other": "The message does not fit either team"
}
},
"refund_requested": {
"type": "noul",
"instructions": "Does the customer explicitly request a refund?",
"criteria": {
"true": "The customer asks for money to be returned",
"false": "The customer does not request money back"
}
}
}
}
noul is the API's name for a yes/no probability. Keep the spelling exactly as shown. Both questions use the same supplied ticket; one answer does not become the input to the next question.
3. Send it to your local server
On Mac or Linux, run from the folder containing ticket.json:
curl --fail-with-body http://127.0.0.1:11434/v1/systemone \
-H 'Content-Type: application/json' \
--data-binary @ticket.json
On Windows PowerShell:
$decision = Invoke-RestMethod -Uri 'http://127.0.0.1:11434/v1/systemone' -Method Post -ContentType 'application/json' -InFile '.\ticket.json'
$decision | ConvertTo-Json -Depth 10
The response is a JSON object with one entry per question under answers. The team entry holds the chosen team in choice, a probability for each team in probabilities, and a confidence value. The refund_requested entry holds noul, a number from 0 to 1 for the probability that the answer is true. A usage field reports the input and output token counts. For this made-up message, the intended label is billing, and the refund probability should lean toward 1.
What a real response looks like. Ollama's announcement shows the output nimble returned for a very similar ticket: a customer charged twice who asks for the extra payment back. That request also asked a third question, how urgent the ticket is, on a three-level scale (Routine, Soon, Urgent).
| Question | What Nimble returned in Ollama's example |
|---|---|
| Which team? | billing, probability about 0.985 |
| Refund requested? | noul about 0.997, so almost certainly yes |
| How urgent? | Score about 0.815 on the 0–2 scale; "Soon" was the single most likely level at about 0.43, and confidence was low (about 0.05) |
| Tokens used | 841 in, 4 out |
The urgency answer shows why the confidence value matters: the model leaned toward "Soon" but was unsure, so a ticket like this is worth a person's look. After a model or build change, rerun the same ticket and record the winning label and its probabilities. A changed winner matters even if the scores moved only slightly. Start with the two highest-scoring teams. A ticket that mentions both billing and a crash goes to the review queue until you have tested how your rule handles mixed issues.
Change the ticket to "The app crashes whenever I upload a photo" and resend it. The intended team now becomes technical. These two examples give you a simple way to spot a reversed rule or a request that never changed.
Read the probabilities
The returned probabilities describe which answer the model favors. Inspect the selected label against the supplied text.
For a first workflow, use the label to prepare a queue for human review. Include an other outcome for text outside your categories. Before automating routing, collect representative messages with known answers and inspect mistakes, including messages containing several issues.
The third question type, score, accepts an ordered list of 2 to 10 descriptions, from lowest to highest. Its result is a probability-weighted number between 0 and the number of descriptions minus one. For three levels, read it on a 0–2 scale. It is not a percentage.
Limits to plan for
- Prompt length: Ollama's Nimble page says each prompt has to fit in Nimble's 8,192-token context. The endpoint does not truncate long input, so trim long tickets before you send them.
- Request size: The text and schema together can be at most 64 KiB.
- Question types: Each question is
choice,noulorscore. Answers are not passed from one question to the next.
If the request fails
| What happens | What to check |
|---|---|
| Connection refused | Start Ollama and confirm the address. Follow the Ollama service and API checks. |
| Endpoint returns 404 | Check the running server's version and the exact /v1/systemone path; updating only a separate CLI does not update a still-running old server. |
| Model not found or unsupported | Compare the request's tag with ollama list; use the GGUF tag above, not an MLX or hosted variant. |
| Invalid request or 400 | Check valid JSON, the question type, and named criteria. Begin with the unchanged example. |
| 413 or context error | Shorten the state. Text-only bodies must fit within 64 KiB, and the complete input must fit the loaded context. |
| Out of memory | Close other model sessions and applications; use the memory failure guide. |
Start with short tickets. Sending an entire document collection to a classifier makes both your intended question and its errors harder to inspect.
What about the smaller Tev1 models?
Ollama also lists experimental Tev1 models in 4B and 0.8B sizes. The smaller model is an alternative for investigating tight memory budgets, but its training and behavior differ from Nimble. Its model card says the fine-tuned weight license is still being finalized.
Keep the whole workflow local
The request goes to your own Ollama server on this computer, and Nimble is a local download. Cloud decision models are a separate option that needs Ollama 0.40.5 or later.
Ollama documents OLLAMA_NO_CLOUD=1 as a way to disable its cloud models and web search; restart Ollama after changing its server environment.
Next, keep this as a small reviewed classifier, or follow the PDF workflow if you need answers drawn from longer documents.
