Who it is forA developer who wants an LLM to classify or score messages, tickets or records, and does not want the data to leave their machine.
The problemLLM answers are free text that must be parsed, and hosted decision APIs send your data to a third party.
The outcomeA running local server at http://127.0.0.1:8017 that returns typed decisions with probabilities for any state you send.
What you need first
- Python 3.11 or newer
- git
- uv (https://docs.astral.sh/uv/)
- About 4.4 GB of free disk space for the default 4B model, plus the llama.cpp runtime (about 11 MB on a Mac, 30 MB with Vulkan, about 570 MB with CUDA)
- A machine that can run llama.cpp: an Apple, NVIDIA, AMD or Intel GPU, or no GPU at all
Steps
- Install Python 3.11 or newer, git and uv.
- Run
git clone https://github.com/Rizzo-AI-Academy/rizzo-flow && cd rizzo-flow - Run
uv sync --locked - Run
uv run rizzo downloadand wait for the model and runtime to finish. - Run
uv run rizzo serve, then open http://127.0.0.1:8017/playground to try a state with questions. - Send the curl example from the Quickstart to http://127.0.0.1:8017/v1/systemone with your own state and questions.
Prompt for your agent
In the rizzo-flow repo, start the server with `uv run rizzo serve`, then POST a JSON body with the state from <path-to-text-file> and one yes/no question to http://127.0.0.1:8017/v1/systemone using model rizzo-latest. Return the typed decision and its probabilities. Verify that the response contains a probability for each option.
Caveat. Probabilities are uncalibrated unless you calibrate them on your own data, and the fine-tuned model is still below TypeSafe Jev in accuracy (0.648 against 0.727 on the typed-decisions benchmark in the README).
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Rizzo-AI-Academy/rizzo-flow and "Get typed LLM decisions from text on your own machine"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer