CASE / hf-convaiinnovations-laya-multilingualSOURCE / HuggingFace
HuggingFace / HUGGINGFACEVARIANT / MULTILINGUAL
laya-multilingual
Non-autoregressive System 1 decision model covering 100+ languages. Give it a state (text, email, ticket, or JSON) and typed questions; it returns typed answers with probabilities in a single forward pass. No text generation, so nothing to parse and nothing to hallucinate.
中文翻译
中文参考整理中,欢迎补充。
In progress; contributions welcome.149点赞
可运行代码
import laya
agent = laya.load("convaiinnovations/laya-multilingual")
result = agent.predict(
{"body": "मुझसे इनवॉइस 4411 के लिए दो बार शुल्क लिया गया। कृपया आज ही धनवापसी करें।"},
{"department": {"type": "choice", "instructions": "Which team should handle `body`?",
"criteria": {"billing": "invoices, payments, refunds",
"technical": "bugs and outages", "sales": "pricing"}},
"refund_requested": {"type": "noul", "instructions": "Does the sender ask for money back?"}},
)
print(result["answers"]["department"]["choice"]) # billing用途标签
来源说明
本条为社区整理,仅展示公开来源与链接。代码、文本、头像及商标权利归原作者和原平台所有;Laya 模型归 Convai Innovations 所有。
整理方式:自动采集 · 整理时间:2026年9月22日 14:29