DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to route support tickets to a team on your Mac with Laya MLX

Pick the right team for each ticket with a local typed choice decision.

Short answer: Install the package on an Apple Silicon Mac: pip install laya-mlx; then in a Python file, import the library and load the checkpoint: import laya_mlx as laya then agent = laya.load("aac6fef/laya-mlx"); Define a choice question with the criteria billing, technical and sales, as shown in the Quick start. All steps.

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

  1. Install the package on an Apple Silicon Mac: pip install laya-mlx
  2. In a Python file, import the library and load the checkpoint: import laya_mlx as laya then agent = laya.load("aac6fef/laya-mlx")
  3. Define a choice question with the criteria billing, technical and sales, as shown in the Quick start.
  4. Call agent.predict with the ticket text and the question dictionary.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer