[workflow]: add ChatBot export | import DSL #329
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Does this pull request fix one issue?
NONE
Describe how to verify it
App(metadata=AppMetadata(id=82ae88f4-a758-4dcd-831d-923d6d286a76, name=你好 , description=cc, mode=chatbot), spec=ChatBot(agentMode=ChatBot.AgentMode(enabled=false, strategy=function_call, maxIteration=5), model=ChatBot.Model(mode=chat, name=gpt-4o-mini, provider=openai, jsonSchema=null, completionParams=ChatBot.CompletionParams(stop=[], frequencyPenalty=null, maxTokens=null, presencePenalty=null, responseFormat=null, temperature=null, topP=null)), openingStatement="", prePrompt="", promptType="simple", completionPromptConfig=ChatBot.CompletionPromptConfig(toK=0), datasetConfigs=ChatBot.DataSetConfig(dataSet=[ChatBot.DataSet(id=ccfe823d-d038-480a-b1c7-27e58c61e865, enabled=true), ChatBot.DataSet(id=ccfe823d-d038-480a-b1, enabled=true)], rerankingEnable=true, rerankingMode="multiple", topK=4, weights=ChatBot.Weights(keywordSetting=ChatBot.KeywordSetting(keywordWeight=0), vectorSetting=ChatBot.VectorSetting(embeddingModelName=text-embedding-3-large, embeddingProviderName=openai, vectorWeight=1))), datasetQueryVariable=, externalDataTools=[], fileUpLoad=ChatBot.FileUpLoad(allowed_file_extensions=[.JPG, .JPEG, .PNG, .GIF, .WEBP, .SVG, .MP4, .MOV, .MPEG, .MPGA], allowed_file_types=[], allowed_file_upload_methods=[remote_url, local_file], enabled=false, image=ChatBot.Image(detail=high, enabled=false, numberLimits=3, transferMethods=[remote_url, local_file]), numberLimit=0), userInputForm=ChatBot.UserInputForm(paragraph=[ChatBot.Paragraph(label=node, maxLength=48, required=false, variable=node, defaultContent=null)], textInput=[], select=[ChatBot.Select(label=dad, options=[fff, 111], required=false, variable=da, defaultContent=null)], number=[ChatBot.Number(label=daadddd, options=null, required=false, variable=aaadaa, defaultContent=null)])))
app:
description: cc
mode: agent-chat
name: '你好 '
model_config:
model: !!com.alibaba.cloud.ai.model.chatbot.ChatBot$Model
completionParams:
frequencyPenalty: null
maxTokens: null
presencePenalty: null
responseFormat: null
stop: [
]
temperature: null
topP: null
jsonSchema: null
mode: chat
name: gpt-4o-mini
provider: openai
pre_prompt: '""'
prompt_type: '"simple"'
completion_prompt_config: !!com.alibaba.cloud.ai.model.chatbot.ChatBot$CompletionPromptConfig
toK: 0
agent_mode: !!com.alibaba.cloud.ai.model.chatbot.ChatBot$AgentMode
enabled: false
maxIteration: 5
strategy: function_call
file_upload: !!com.alibaba.cloud.ai.model.chatbot.ChatBot$FileUpLoad
allowed_file_extensions:
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
- .MP4
- .MOV
- .MPEG
- .MPGA
allowed_file_types: [
]
allowed_file_upload_methods:
- remote_url
- local_file
enabled: false
image:
detail: high
enabled: false
numberLimits: 3
transferMethods:
- remote_url
- local_file
numberLimit: 3
user_input_form:
label: node
maxLength: 48
required: false
variable: node
defaultContent: null
label: dad
options:
required: false
variable: da
defaultContent: null
label: daadddd
options: null
required: false
variable: aaadaa
defaultContent: null
dataset_configs:
top_k: 4
datasets:
datasets:
enabled: true
id: ccfe823d-d038-480a-b1c7-27e58c61e865
enabled: true
id: ccfe823d-d038-480a-b1
retrieval_model: '"multiple"'
weights: !!com.alibaba.cloud.ai.model.chatbot.ChatBot$Weights
keywordSetting:
keywordWeight: 0
vectorSetting:
embeddingModelName: text-embedding-3-large
embeddingProviderName: openai
vectorWeight: 1
reranking_enable: true
opening_statement: '""'
kind: app