Skip to content

Commit

Permalink
fix template (#3390)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk authored Dec 13, 2024
1 parent 1e61850 commit 41a8536
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 88 deletions.
74 changes: 37 additions & 37 deletions projects/app/public/appMarketTemplates/CQ/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@
{
"key": "welcomeText",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"label": "core.app.Welcome Text",
"value": "你好,我是知识库助手,请不要忘记选择知识库噢~\n[你是谁]\n[如何使用]"
},
{
"key": "variables",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"valueType": "WorkflowIOValueTypeEnum.any",
"valueType": "any",
"label": "core.app.Chat Variable",
"value": []
},
{
"key": "questionGuide",
"valueType": "WorkflowIOValueTypeEnum.boolean",
"valueType": "boolean",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "core.app.Question Guide",
"value": true
},
{
"key": "tts",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"valueType": "WorkflowIOValueTypeEnum.any",
"valueType": "any",
"label": "",
"value": {
"type": "web"
Expand All @@ -52,7 +52,7 @@
{
"key": "whisper",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"valueType": "WorkflowIOValueTypeEnum.any",
"valueType": "any",
"label": "",
"value": {
"open": false,
Expand All @@ -63,7 +63,7 @@
{
"key": "scheduleTrigger",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"valueType": "WorkflowIOValueTypeEnum.any",
"valueType": "any",
"label": "",
"value": null
}
Expand All @@ -85,7 +85,7 @@
{
"key": "userChatInput",
"renderTypeList": ["FlowNodeInputTypeEnum.reference", "FlowNodeInputTypeEnum.textarea"],
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"label": "用户问题",
"required": true,
"toolDescription": "用户问题"
Expand All @@ -96,7 +96,7 @@
"id": "userChatInput",
"key": "userChatInput",
"label": "core.module.input.label.user question",
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"type": "FlowNodeOutputTypeEnum.static"
}
]
Expand All @@ -121,15 +121,15 @@
"FlowNodeInputTypeEnum.reference"
],
"label": "core.module.input.label.aiModel",
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"value": "gpt-4o-mini"
},
{
"key": "temperature",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"value": 3,
"valueType": "WorkflowIOValueTypeEnum.number",
"valueType": "number",
"min": 0,
"max": 10,
"step": 1
Expand All @@ -139,7 +139,7 @@
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"value": 1950,
"valueType": "WorkflowIOValueTypeEnum.number",
"valueType": "number",
"min": 100,
"max": 4000,
"step": 50
Expand All @@ -149,25 +149,25 @@
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"value": true,
"valueType": "WorkflowIOValueTypeEnum.boolean"
"valueType": "boolean"
},
{
"key": "quoteTemplate",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"valueType": "WorkflowIOValueTypeEnum.string"
"valueType": "string"
},
{
"key": "quotePrompt",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"valueType": "WorkflowIOValueTypeEnum.string"
"valueType": "string"
},
{
"key": "systemPrompt",
"renderTypeList": ["FlowNodeInputTypeEnum.textarea", "FlowNodeInputTypeEnum.reference"],
"max": 3000,
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"label": "core.ai.Prompt",
"description": "core.app.tip.systemPromptTip",
"placeholder": "core.app.tip.chatNodeSystemPromptTip",
Expand All @@ -179,7 +179,7 @@
"FlowNodeInputTypeEnum.numberInput",
"FlowNodeInputTypeEnum.reference"
],
"valueType": "WorkflowIOValueTypeEnum.chatHistory",
"valueType": "chatHistory",
"label": "core.module.input.label.chat history",
"required": true,
"min": 0,
Expand All @@ -189,7 +189,7 @@
{
"key": "userChatInput",
"renderTypeList": ["FlowNodeInputTypeEnum.reference", "FlowNodeInputTypeEnum.textarea"],
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"label": "用户问题",
"required": true,
"toolDescription": "用户问题",
Expand All @@ -201,7 +201,7 @@
"label": "",
"debugLabel": "知识库引用",
"description": "",
"valueType": "WorkflowIOValueTypeEnum.datasetQuote",
"valueType": "datasetQuote",
"value": ["MNMMMIjjWyMU", "quoteQA"]
}
],
Expand All @@ -211,15 +211,15 @@
"key": "history",
"label": "core.module.output.label.New context",
"description": "core.module.output.description.New context",
"valueType": "WorkflowIOValueTypeEnum.chatHistory",
"valueType": "chatHistory",
"type": "FlowNodeOutputTypeEnum.static"
},
{
"id": "answerText",
"key": "answerText",
"label": "core.module.output.label.Ai response content",
"description": "core.module.output.description.Ai response content",
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"type": "FlowNodeOutputTypeEnum.static"
}
]
Expand All @@ -245,15 +245,15 @@
],
"label": "core.module.input.label.aiModel",
"required": true,
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"llmModelType": "classify",
"value": "gpt-4o-mini"
},
{
"key": "systemPrompt",
"renderTypeList": ["FlowNodeInputTypeEnum.textarea", "FlowNodeInputTypeEnum.reference"],
"max": 3000,
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"label": "core.module.input.label.Background",
"description": "core.module.input.description.Background",
"placeholder": "core.module.input.placeholder.Classify background",
Expand All @@ -265,7 +265,7 @@
"FlowNodeInputTypeEnum.numberInput",
"FlowNodeInputTypeEnum.reference"
],
"valueType": "WorkflowIOValueTypeEnum.chatHistory",
"valueType": "chatHistory",
"label": "core.module.input.label.chat history",
"required": true,
"min": 0,
Expand All @@ -275,15 +275,15 @@
{
"key": "userChatInput",
"renderTypeList": ["FlowNodeInputTypeEnum.reference", "FlowNodeInputTypeEnum.textarea"],
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"label": "用户问题",
"required": true,
"value": ["workflowStartNodeId", "userChatInput"]
},
{
"key": "agents",
"renderTypeList": ["FlowNodeInputTypeEnum.custom"],
"valueType": "WorkflowIOValueTypeEnum.any",
"valueType": "any",
"label": "",
"value": [
{
Expand All @@ -306,7 +306,7 @@
"id": "cqResult",
"key": "cqResult",
"label": "分类结果",
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"type": "FlowNodeOutputTypeEnum.static"
}
]
Expand All @@ -326,7 +326,7 @@
{
"key": "text",
"renderTypeList": ["FlowNodeInputTypeEnum.textarea", "FlowNodeInputTypeEnum.reference"],
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"label": "core.module.input.label.Response content",
"description": "core.module.input.description.Response content",
"placeholder": "core.module.input.description.Response content",
Expand Down Expand Up @@ -357,7 +357,7 @@
],
"label": "core.module.input.label.Select dataset",
"value": [],
"valueType": "WorkflowIOValueTypeEnum.selectDataset",
"valueType": "selectDataset",
"list": [],
"required": true
},
Expand All @@ -366,53 +366,53 @@
"renderTypeList": ["FlowNodeInputTypeEnum.selectDatasetParamsModal"],
"label": "",
"value": 0.4,
"valueType": "WorkflowIOValueTypeEnum.number"
"valueType": "number"
},
{
"key": "limit",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"value": 1500,
"valueType": "WorkflowIOValueTypeEnum.number"
"valueType": "number"
},
{
"key": "searchMode",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"value": "embedding"
},
{
"key": "usingReRank",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"valueType": "WorkflowIOValueTypeEnum.boolean",
"valueType": "boolean",
"value": false
},
{
"key": "datasetSearchUsingExtensionQuery",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"valueType": "WorkflowIOValueTypeEnum.boolean",
"valueType": "boolean",
"value": true
},
{
"key": "datasetSearchExtensionModel",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"valueType": "WorkflowIOValueTypeEnum.string"
"valueType": "string"
},
{
"key": "datasetSearchExtensionBg",
"renderTypeList": ["FlowNodeInputTypeEnum.hidden"],
"label": "",
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"value": ""
},
{
"key": "userChatInput",
"renderTypeList": ["reference", "FlowNodeInputTypeEnum.textarea"],
"valueType": "WorkflowIOValueTypeEnum.string",
"valueType": "string",
"label": "用户问题",
"required": true,
"toolDescription": "需要检索的内容",
Expand All @@ -426,7 +426,7 @@
"label": "core.module.Dataset quote.label",
"description": "特殊数组格式,搜索结果为空时,返回空数组。",
"type": "FlowNodeOutputTypeEnum.static",
"valueType": "WorkflowIOValueTypeEnum.datasetQuote"
"valueType": "datasetQuote"
}
]
}
Expand Down
Loading

0 comments on commit 41a8536

Please sign in to comment.