搜索大师3
暂无描述
工作流图谱
YAML 源码
app:
description: ''
icon: 🌐
icon_background: '#E4FBCC'
mode: advanced-chat
name: 搜索大师3
kind: app
version: 0.1.0
workflow:
features:
file_upload:
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
opening_statement: ''
retriever_resource:
enabled: false
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions: []
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
language: ''
voice: ''
graph:
edges:
- data:
isInIteration: false
sourceType: start
targetType: llm
id: 1719593592357-source-1719759357501-target
selected: false
source: '1719593592357'
sourceHandle: source
target: '1719759357501'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: code
id: 1719759357501-source-1719838886987-target
source: '1719759357501'
sourceHandle: source
target: '1719838886987'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: iteration
id: 1719838886987-source-1719840515773-target
source: '1719838886987'
sourceHandle: source
target: '1719840515773'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: iteration
targetType: template-transform
id: 1719878483248-source-1719840940932-target
source: '1719878483248'
sourceHandle: source
target: '1719840940932'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: llm
id: 1719840940932-source-1719932888279-target
source: '1719840940932'
sourceHandle: source
target: '1719932888279'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '1719878483248'
sourceType: http-request
targetType: if-else
id: 1719935024281-source-1719935026336-target
source: '1719935024281'
sourceHandle: source
target: '1719935026336'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
sourceType: iteration
targetType: code
id: 1719840515773-source-1719933634159-target
source: '1719840515773'
sourceHandle: source
target: '1719933634159'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: iteration
id: 1719933634159-source-1719878483248-target
source: '1719933634159'
sourceHandle: source
target: '1719878483248'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '1719878483248'
sourceType: if-else
targetType: tool
id: 1719935026336-true-1720364034385-target
source: '1719935026336'
sourceHandle: 'true'
target: '1720364034385'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
sourceType: llm
targetType: answer
id: 1719932888279-source-answer-target
source: '1719932888279'
sourceHandle: source
target: answer
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '1719878483248'
sourceType: tool
targetType: template-transform
id: 1720364034385-source-1720570101918-target
source: '1720364034385'
sourceHandle: source
target: '1720570101918'
targetHandle: target
type: custom
zIndex: 1002
nodes:
- data:
desc: ''
selected: false
title: Start
type: start
variables: []
height: 54
id: '1719593592357'
position:
x: 30
y: 388.5
positionAbsolute:
x: 30
y: 388.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#1719932888279.text#}}'
desc: ''
selected: false
title: Answer
type: answer
variables: []
height: 107
id: answer
position:
x: 3619
y: 388.5
positionAbsolute:
x: 3619
y: 388.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: true
variable_selector:
- sys
- query
desc: ''
model:
completion_params:
frequency_penalty: 0.5
presence_penalty: 0.5
temperature: 0.2
top_p: 0.75
mode: chat
name: gpt-3.5-turbo-16k
provider: openai
prompt_template:
- id: 455a5f0d-bbba-479a-b3c2-1eefa938894a
role: system
text: "You are a helpful assistant that helps the user to ask related questions,\
\ based on question and the related contexts. \n\nPlease make sure that\
\ specifics, like events, names, locations, are included in follow up\
\ questions so they can be asked standalone. For example, if the original\
\ question asks about \"the Manhattan project\", in the follow up question,\
\ do not just say \"the project\", but use the full name \"the Manhattan\
\ project\". Your related questions must be in the same language as the\
\ original question."
- id: 6ba785ec-0bba-4a19-8a6d-63dbeacce7d2
role: user
text: "Here is the question: {{#sys.query#}}\n\nUnderstand the question\
\ first, then identify worthwhile topics that can be follow-ups, provide\
\ 3 questions, each question no longer than 20 words. \nDo NOT repeat\
\ the original question. the output language MUST same as ‘ {{#context#}}\
\ ‘ and do NOT return any translation. "
selected: false
title: LLM 1
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1719759357501'
position:
x: 334
y: 388.5
positionAbsolute:
x: 334
y: 388.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
code: "\ndef main(arg1: str) -> dict:\n questions = arg1.split('\\n')\n\
\ return {\n \"result\": questions,\n }\n"
code_language: python3
desc: ''
outputs:
result:
children: null
type: array[string]
selected: false
title: Code
type: code
variables:
- value_selector:
- '1719759357501'
- text
variable: arg1
height: 54
id: '1719838886987'
position:
x: 638
y: 388.5
positionAbsolute:
x: 638
y: 388.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
height: 247
iterator_selector:
- '1719838886987'
- result
output_selector:
- '1720362263119'
- text
output_type: array[string]
selected: false
startNodeType: tool
start_node_id: '1720362263119'
title: Iteration
type: iteration
width: 377
height: 247
id: '1719840515773'
position:
x: 942
y: 388.5
positionAbsolute:
x: 942
y: 388.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 377
zIndex: 1
- data:
desc: ''
selected: false
template: '{{ arg1 }}
'
title: Template
type: template-transform
variables:
- value_selector:
- '1719878483248'
- output
variable: arg1
height: 54
id: '1719840940932'
position:
x: 3011
y: 388.5
positionAbsolute:
x: 3011
y: 388.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
height: 377
iterator_selector:
- '1719933634159'
- result
output_selector:
- '1720570101918'
- output
output_type: array[string]
selected: true
startNodeType: http-request
start_node_id: '1719935024281'
title: Iteration 2
type: iteration
width: 1267.5714285714284
height: 377
id: '1719878483248'
position:
x: 1683
y: 388.5
positionAbsolute:
x: 1683
y: 388.5
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 1268
zIndex: 1
- data:
context:
enabled: false
variable_selector: []
desc: ''
memory:
query_prompt_template: '{{#sys.query#}}{{#1719759357501.text#}}'
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 50
model:
completion_params:
frequency_penalty: 0.5
presence_penalty: 0.5
temperature: 0.2
top_p: 0.75
mode: chat
name: gpt-3.5-turbo-16k
provi...(过长已截断)