Files
iAOP/templates/ti-cl4/llm-scenarios/config/nl_query.template.yaml

32 lines
1.2 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- coding: utf-8 -*-
# 模板「自然语言查询(NL→SQL/API)」配置资产:ti-cl4(Template-Ti 一期)。
#
# 说明(issue #76 / 父 Issue #11):
# - metrics:自然语言指标名 → 点位(point_id),NL 查询翻译的依据;
# - intents:意图关键词(trend/latest/kpi/alarm),长词优先;
# - table:TDengine 超级表(对齐 data-bus tdengine_schema 命名);
# - default_time_range:未识别时间范围时的默认窗口;
# - 换行业/换点位只改本文件,翻译器内核零改动。
template: ti-cl4
version: 1.0.0
nl_query:
table: tpl_ti_cl4.points
default_time_range: 1h
# 自然语言指标名 → point_id(演示字典,接客户数据时按点表补充)
metrics:
氯气流量: CLF-01.FLOW
炉温: CLF-01.TEMP
炉压: CLF-01.PRES
进料量: CLF-01.FEED
钛纯度: LAB-01.TI_PURITY
交联度: LAB-01.CROSSLINK
# 意图关键词(长词优先;未命中 → unsupported,转 LLM 问答)
intents:
trend: [趋势, 走势, 曲线, 变化]
alarm: [报警, 告警, 异常]
kpi: [平均, 统计, 均值, 最大值, 最小值]
latest: [最新, 现在, 当前, 多少, 数值]