System One 信号
概述
systemone 向决策模型提出一个你编写的类型化问题,再把答案变成一个路由事实。你用自然语言写问题:从几个选项中选一个(choice)、是或否(noul)、刻度上的等级(score)、这些标签中哪些适用(set),或者每个标签出现在文本的什么位置(span)。它是应用信号编译后的原语,System One 一章介绍了背后的模型。
主要优势
- 问题写好就能用,无需训练分类器。
- 答案带有概率,路由可以要求答案足够可信。
- 规则读取问题需要的内容:当前轮次、之前的轮次、工具结果、请求中的图片,或模型的答案。
- 针对同一请求的问题,与该请求向同一部署提出的其他问题共享一次调用。
解决什么问题?
固定标签的分类器只能回答训练时定义的问题。System One 模型仅凭问题文本,就能回答“这需要逐步推理吗?”或“这和我们的产品有关吗?”。
何时使用
当你需要对请求做出某种判断,而现有的应用信号都不涵盖时使用它。长度、关键词、输入媒体、身份等结构性事实,优先使用启发式信号。编写自定义问题从一个想法一路讲到调优好的规则。
配置
recipes:
- name: default
signals:
systemone:
- name: needs_tools
question:
type: noul
instructions: Does answering this request need a tool call?
predicate:
gte: 0.7
- name: request_kind
question:
type: choice
instructions: What kind of request is this?
choices:
- key: code
description: Writing, reviewing or debugging code
- key: math
description: Mathematics or quantitative reasoning
- key: chat
description: Anything else
labels: [code, math]
- name: difficulty
deployment: scorer
question:
type: score
instructions: How difficult is this request?
levels: [Trivial, Moderate, Hard]
predicate:
gte: 1.5
decisions:
- name: hard-code
priority: 200
rules:
operator: AND
on_unknown: no_match
conditions:
- type: systemone
name: request_kind
label: code
- type: systemone
name: difficulty
modelRefs:
- model: large-coder
global:
model_catalog:
deployments:
scorer:
provider: model_runtime
artifact: vllm-sr/Decision-2.0-Kai-0.6B
没有 deployment 的规则询问决策模型 global.model_catalog.system.decision_model