Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[workflow]: add ChatBot export | import DSL #329

Closed
wants to merge 8 commits into from

Conversation

PolarishT
Copy link
Contributor

@PolarishT PolarishT commented Dec 28, 2024

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:

  • paragraph:
    label: node
    maxLength: 48
    required: false
    variable: node
    defaultContent: null
  • select:
    label: dad
    options:
    • fff
    • '111'
      required: false
      variable: da
      defaultContent: null
  • number:
    label: daadddd
    options: null
    required: false
    variable: aaadaa
    defaultContent: null
    dataset_configs:
    top_k: 4
    datasets:
    datasets:
    • !!com.alibaba.cloud.ai.model.chatbot.ChatBot$DataSet
      enabled: true
      id: ccfe823d-d038-480a-b1c7-27e58c61e865
    • !!com.alibaba.cloud.ai.model.chatbot.ChatBot$DataSet
      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

@PolarishT PolarishT closed this Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant