feat: support binding context var (#1227)

Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
Garfield Dai
2023-09-27 14:53:22 +08:00
committed by GitHub
parent 59236b789f
commit 18c710c906
44 changed files with 711 additions and 77 deletions

View File

@@ -66,6 +66,19 @@ const translation = {
noDataSet: 'No dataset found',
toCreate: 'Go to create',
notSupportSelectMulti: 'Currently only support one dataset',
queryVariable: {
title: 'Query variable',
tip: 'This variable will be used as the query input for context retrieval, obtaining context information related to the input of this variable.',
choosePlaceholder: 'Choose query variable',
noVar: 'No variables',
noVarTip: 'please create a variable under the Variables section',
unableToQueryDataSet: 'Unable to query the dataset',
unableToQueryDataSetTip: 'Unable to query the dataset successfully, please choose a context query variable in the context section.',
ok: 'OK',
contextVarNotEmpty: 'context query variable can not be empty',
deleteContextVarTitle: 'Delete variable “{{varName}}”?',
deleteContextVarTip: 'This variable has been set as a context query variable, and removing it will impact the normal use of the dataset. If you still need to delete it, please reselect it in the context section.',
},
},
},
automatic: {

View File

@@ -66,6 +66,19 @@ const translation = {
noDataSet: '未找到数据集',
toCreate: '去创建',
notSupportSelectMulti: '目前只支持引用一个数据集',
queryVariable: {
title: '查询变量',
tip: '该变量将用作上下文检索的查询输入,获取与该变量的输入相关的上下文信息。',
choosePlaceholder: '请选择变量',
noVar: '没有变量',
noVarTip: '请创建变量',
unableToQueryDataSet: '无法查询数据集',
unableToQueryDataSetTip: '无法成功查询数据集,请在上下文部分选择一个上下文查询变量。',
ok: '好的',
contextVarNotEmpty: '上下文查询变量不能为空',
deleteContextVarTitle: '删除变量“{{varName}}”?',
deleteContextVarTip: '该变量已被设置为上下文查询变量,删除该变量将影响数据集的正常使用。 如果您仍需要删除它,请在上下文部分中重新选择它。',
},
},
},
automatic: {