← 返回案例流
CASE / gh-christianalexander-laya-exSOURCE / GitHub
GitHub / GITHUB
VARIANT / ELIXIR
ChristianAlexander@ChristianAlexander

laya_ex

An Elixir library wrapping ConvAI Innovations' OSS Laya system one model
中文翻译

中文参考整理中,欢迎补充。

In progress; contributions welcome.
13Star
0Fork

可运行代码

{:ok, model} = Laya.load()

Laya.predict(model, "Please refund the duplicate invoice.", %{
  "department" => %{
    type: :choice,
    instructions: "Which team should handle this request?",
    criteria: [
      {"billing", "invoices, payments, and refunds"},
      {"technical", "bugs and outages"},
      {"other", "everything else"}
    ]
  },
  "refund_requested" => %{
    type: :noul,
    instructions: "Does the customer explicitly request a refund?"
  }
})
查看 GitHub 原链接

来源说明

本条为社区整理,仅展示公开来源与链接。代码、文本、头像及商标权利归原作者和原平台所有;Laya 模型归 Convai Innovations 所有。

整理方式:自动采集 · 整理时间:2026年9月22日 14:29