Who it is forA support engineer on a small team who needs each incoming ticket sent to billing, technical or sales, without a cloud API call.
The problemManual triage is slow, and every ticket needs a consistent team choice.
The outcomeEach ticket gets probabilities over the named teams, computed locally, and the top label can drive routing.
What you need first
- An Apple Silicon Mac running macOS 14 or later
- Python 3.11 or later
- Internet access for the first checkpoint download, after which inference is fully local
Steps
- Install the package on an Apple Silicon Mac:
pip install laya-mlx - In a Python file, import the library and load the checkpoint:
import laya_mlx as layathenagent = laya.load("aac6fef/laya-mlx") - Define a choice question with the criteria billing, technical and sales, as shown in the Quick start.
- Call
agent.predictwith the ticket text and the question dictionary. - Read
result["answers"]["department"]and pick the label with the highest probability.
Prompt for your agent
In the laya-mlx repo (github.com/mizorewww/laya-mlx), write a Python script that loads aac6fef/laya-mlx and routes the ticket text in <ticket_file> to one of the teams billing, technical or sales using a choice question. Print the answers dictionary. Verify that the printed label is one of the three criteria.
Caveat. The published latency figures come from one short question on an M3 Max, so longer tickets or other machines will take different times.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for mizorewww/laya-mlx and "Route support tickets to a team on your Mac"
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