NandhaKishorM/laya
Fast non-autoregressive decision/classification model
What
A non-autoregressive "System 1" decision model. Answers typed questions (choice, score, yes/no) about any text in one forward pass (~33 ms), in 100+ languages, with calibrated probabilities and an abstain/review signal.
How to use
pip install layaimport laya
agent = laya.Agent(vegaml=True)
out = agent.predict(
"We were billed twice, refund it or we cancel.",
{"department": {"type": "choice", "instructions": "Which team?",
"criteria": {"billing": "payments", "technical": "bugs", "other": "else"}}},
)
print(out["answers"]["department"]["choice"])Reach for it when
routing/classifying text cheaply instead of calling an LLM.