mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
267 lines
6.8 KiB
YAML
267 lines
6.8 KiB
YAML
app:
|
|
description: Test for variable extraction feature
|
|
icon: 🤖
|
|
icon_background: '#FFEAD5'
|
|
mode: advanced-chat
|
|
name: pav-test-extraction
|
|
use_icon_as_answer_icon: false
|
|
dependencies:
|
|
- current_identifier: null
|
|
type: marketplace
|
|
value:
|
|
marketplace_plugin_unique_identifier: langgenius/google:0.0.8@3efcf55ffeef9d0f77715e0afb23534952ae0cb385c051d0637e86d71199d1a6
|
|
version: null
|
|
- current_identifier: null
|
|
type: marketplace
|
|
value:
|
|
marketplace_plugin_unique_identifier: langgenius/tongyi:0.1.16@d8bffbe45418f0c117fb3393e5e40e61faee98f9a2183f062e5a280e74b15d21
|
|
version: null
|
|
kind: app
|
|
version: 0.5.0
|
|
workflow:
|
|
conversation_variables: []
|
|
environment_variables: []
|
|
features:
|
|
file_upload:
|
|
allowed_file_extensions:
|
|
- .JPG
|
|
- .JPEG
|
|
- .PNG
|
|
- .GIF
|
|
- .WEBP
|
|
- .SVG
|
|
allowed_file_types:
|
|
- image
|
|
allowed_file_upload_methods:
|
|
- local_file
|
|
- remote_url
|
|
enabled: false
|
|
image:
|
|
enabled: false
|
|
number_limits: 3
|
|
transfer_methods:
|
|
- local_file
|
|
- remote_url
|
|
number_limits: 3
|
|
opening_statement: 你好!我是一个搜索助手,请告诉我你想搜索什么内容。
|
|
retriever_resource:
|
|
enabled: true
|
|
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:
|
|
sourceType: start
|
|
targetType: llm
|
|
id: 1767773675796-llm
|
|
source: '1767773675796'
|
|
sourceHandle: source
|
|
target: llm
|
|
targetHandle: target
|
|
type: custom
|
|
- data:
|
|
isInIteration: false
|
|
isInLoop: false
|
|
sourceType: llm
|
|
targetType: tool
|
|
id: llm-source-1767773709491-target
|
|
source: llm
|
|
sourceHandle: source
|
|
target: '1767773709491'
|
|
targetHandle: target
|
|
type: custom
|
|
zIndex: 0
|
|
- data:
|
|
isInIteration: false
|
|
isInLoop: false
|
|
sourceType: tool
|
|
targetType: answer
|
|
id: tool-source-answer-target
|
|
source: '1767773709491'
|
|
sourceHandle: source
|
|
target: answer
|
|
targetHandle: target
|
|
type: custom
|
|
zIndex: 0
|
|
nodes:
|
|
- data:
|
|
selected: false
|
|
title: User Input
|
|
type: start
|
|
variables: []
|
|
height: 73
|
|
id: '1767773675796'
|
|
position:
|
|
x: 80
|
|
y: 282
|
|
positionAbsolute:
|
|
x: 80
|
|
y: 282
|
|
sourcePosition: right
|
|
targetPosition: left
|
|
type: custom
|
|
width: 242
|
|
- data:
|
|
context:
|
|
enabled: false
|
|
variable_selector: []
|
|
memory:
|
|
query_prompt_template: ''
|
|
role_prefix:
|
|
assistant: ''
|
|
user: ''
|
|
window:
|
|
enabled: true
|
|
size: 10
|
|
model:
|
|
completion_params:
|
|
temperature: 0.7
|
|
mode: chat
|
|
name: qwen-max
|
|
provider: langgenius/tongyi/tongyi
|
|
prompt_template:
|
|
- id: 11d06d15-914a-4915-a5b1-0e35ab4fba51
|
|
role: system
|
|
text: '你是一个智能搜索助手。用户会告诉你他们想搜索的内容。
|
|
|
|
请与用户进行对话,了解他们的搜索需求。
|
|
|
|
当用户明确表达了想要搜索的内容后,你可以回复"好的,我来帮你搜索"。
|
|
|
|
'
|
|
selected: false
|
|
title: LLM
|
|
type: llm
|
|
vision:
|
|
enabled: false
|
|
height: 88
|
|
id: llm
|
|
position:
|
|
x: 380
|
|
y: 282
|
|
positionAbsolute:
|
|
x: 380
|
|
y: 282
|
|
selected: false
|
|
sourcePosition: right
|
|
targetPosition: left
|
|
type: custom
|
|
width: 242
|
|
- data:
|
|
is_team_authorization: true
|
|
paramSchemas:
|
|
- auto_generate: null
|
|
default: null
|
|
form: llm
|
|
human_description:
|
|
en_US: used for searching
|
|
ja_JP: used for searching
|
|
pt_BR: used for searching
|
|
zh_Hans: 用于搜索网页内容
|
|
label:
|
|
en_US: Query string
|
|
ja_JP: Query string
|
|
pt_BR: Query string
|
|
zh_Hans: 查询语句
|
|
llm_description: key words for searching
|
|
max: null
|
|
min: null
|
|
name: query
|
|
options: []
|
|
placeholder: null
|
|
precision: null
|
|
required: true
|
|
scope: null
|
|
template: null
|
|
type: string
|
|
params:
|
|
query: ''
|
|
plugin_id: langgenius/google
|
|
plugin_unique_identifier: langgenius/google:0.0.8@3efcf55ffeef9d0f77715e0afb23534952ae0cb385c051d0637e86d71199d1a6
|
|
provider_icon: http://localhost:5001/console/api/workspaces/current/plugin/icon?tenant_id=7217e801-f6f5-49ec-8103-d7de97a4b98f&filename=1c5871163478957bac64c3fe33d72d003f767497d921c74b742aad27a8344a74.svg
|
|
provider_id: langgenius/google/google
|
|
provider_name: langgenius/google/google
|
|
provider_type: builtin
|
|
selected: false
|
|
title: GoogleSearch
|
|
tool_configurations: {}
|
|
tool_description: A tool for performing a Google SERP search and extracting
|
|
snippets and webpages.Input should be a search query.
|
|
tool_label: GoogleSearch
|
|
tool_name: google_search
|
|
tool_node_version: '2'
|
|
tool_parameters:
|
|
query:
|
|
type: variable
|
|
value:
|
|
- ext_1
|
|
- text
|
|
type: tool
|
|
virtual_nodes:
|
|
- data:
|
|
model:
|
|
completion_params:
|
|
temperature: 0.7
|
|
mode: chat
|
|
name: qwen-max
|
|
provider: langgenius/tongyi/tongyi
|
|
context:
|
|
enabled: false
|
|
prompt_template:
|
|
- role: user
|
|
text: '{{#llm.context#}}'
|
|
- role: user
|
|
text: 请从对话历史中提取用户想要搜索的关键词,只返回关键词本身,不要返回其他内容
|
|
title: 提取搜索关键词
|
|
id: ext_1
|
|
type: llm
|
|
height: 52
|
|
id: '1767773709491'
|
|
position:
|
|
x: 682
|
|
y: 282
|
|
positionAbsolute:
|
|
x: 682
|
|
y: 282
|
|
selected: false
|
|
sourcePosition: right
|
|
targetPosition: left
|
|
type: custom
|
|
width: 242
|
|
- data:
|
|
answer: '搜索结果:
|
|
|
|
{{#1767773709491.text#}}
|
|
|
|
'
|
|
selected: false
|
|
title: Answer
|
|
type: answer
|
|
height: 103
|
|
id: answer
|
|
position:
|
|
x: 984
|
|
y: 282
|
|
positionAbsolute:
|
|
x: 984
|
|
y: 282
|
|
selected: true
|
|
sourcePosition: right
|
|
targetPosition: left
|
|
type: custom
|
|
width: 242
|
|
viewport:
|
|
x: 151
|
|
y: 141.5
|
|
zoom: 1
|
|
rag_pipeline_variables: []
|