r/Python • • 22d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

28 Upvotes

159 comments sorted by

View all comments

2

u/uniquequename 16d ago

I built pydecide which is one client for small decision models, with a confidence gate that escalates only the questions the local model is unsure about.

Agents and support pipelines send lots of tiny classification calls ("which team gets this ticket") to chat models. pydecide answers them with a small decision model (laya on PyTorch or MLX, a CrossEncoder, or hosted Jev, OpenRouter, OpenAI Decisions) and passes only low-confidence questions to the next backend in the chain. Every answer records its route, and `decide fit` picks the threshold from recorded outcomes.

Measured on an M4 with laya-mlx: 20.9 ms median per decision, 92% on 150 AG News headlines.

uv tool install "pydecide[mlx]"

decide ask "I was charged twice" --choice billing,engineering --verbose

https://github.com/gopaljigaur/decide