DEV Community

SimonLi
SimonLi

Posted on

everything about jev

GitHub logo qingshungLI / everything-about-jev

tell you everything about jev,TypeSafe AI's System One model for typed decisions.

Everything about Jev

Everything about Jev

Checks License

简体中文 · English

这里整理了 Jev 的使用方法、示例代码、社区项目和讨论。如果你刚听说这个模型,可以先读下面的介绍,再选一个 demo 跑起来。

快速开始 · 示例 · 社区讨论 · 项目目录

Jev 是什么

Jev 是 TypeSafe AI 的决策模型。你给它一段文本或业务状态,再定义问题和可选答案,它会返回选择、评分和概率。

比如收到一条“我的订阅扣了两次钱”的消息,你可以让 Jev 判断该交给哪个团队、是否需要人工处理,以及紧急程度。它返回的字段可以直接用于程序里的条件分支。

类型 用法 返回值
Choice 从“账单、技术、其他”中选择 选项、confidence、各选项概率
Noul 判断是否需要人工处理 “是”的概率
Score 按给定量表评估紧急程度 评分和概率分布,评分可能为小数

Jev 适合分类、路由、筛选和有限动作选择。需要写回复时,可以接生成模型;需要查最新信息时,由应用先检索,再把结果传给 Jev。confidence 和获选项概率是不同字段,接入时要注意区分。

系统说明介绍了这三类问题、模型边界,以及如何在应用里处理不确定的结果。

快速开始

需要 Python 3.10+。下面使用 jevai.org 社区 API;使用 TypeSafe 官方密钥的读者请看官方 SDK 示例

git clone https://github.com/qingshungLI/everything-about-jev.git
cd everything-about-jev
python -m pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

在根目录创建 .env

JEVAI_API_KEY=你的社区服务密钥
Enter fullscreen mode Exit fullscreen mode

运行:

python demos/python/quickstart.py
Enter fullscreen mode Exit fullscreen mode

默认示例把“把页面变暗一点,晚上看太刺眼了”匹配到 dark_mode。它只返回动作名称,不操作浏览器。密钥文件已加入 .gitignore

也可以用 TypeScript(Node.js 20+):

npm ci
npm run demo:community
Enter fullscreen mode Exit fullscreen mode

遇到限流或密钥问题,参见接入说明。社区 API 和官方 API 使用各自的密钥,具体区别见供应方对照

示例

示例 内容 Python 参数
命令面板 根据一句话选择深色模式、导出或帮助 --case palette
工单分类 同时判断队列、人工需求和紧急度 --case ticket
资料核对 判断提供的资料是否支持一个说法 --case research
模型路由 从给定候选中选择适合任务的模型 --case model-route
工具检查 检查工具调用是否符合操作规则 --case tool-guard
完成检查 根据已完成工作和缺失项判断任务状态 --case completion

例如:

python demos/python/quickstart.py --case model-route
Enter fullscreen mode Exit fullscreen mode

更多语言和演示入口:

Recently, many people have been discussing Jev, a product launched by TypeSafe AI. Rather than writing articles or chatting with you, Jev makes decisions, classifications, and evaluations based on the information provided—for example, determining who a ticket should be assigned to or which tool should be called next.

I’ve put together a bilingual Chinese–English repository covering Jev’s core principles, integration methods, community projects, and the debates surrounding it. It also includes runnable examples in Python, TypeScript, Node.js, and more, so you can try it out directly.

If you want to understand what Jev can do and where it fits best, this is a good place to start.

Top comments (0)