Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: add optional search parameters to dataset query templates i (#17857)

GuanMu3ece713a05e6
diff --git a/web/app/(commonLayout)/datasets/template/template.en.mdx b/web/app/(commonLayout)/datasets/template/template.en.mdx
index 862344659d6..ca86c7e6d66 100644
--- a/web/app/(commonLayout)/datasets/template/template.en.mdx
+++ b/web/app/(commonLayout)/datasets/template/template.en.mdx
@@ -386,11 +386,20 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
<Col>
### Query
<Properties>
+ <Property name='keyword' type='string' key='keyword'>
+ Search keyword, optional
+ </Property>
+ <Property name='tag_ids' type='array[string]' key='tag_ids'>
+ Tag ID list, optional
+ </Property>
<Property name='page' type='string' key='page'>
- Page number
+ Page number, optional, default 1
</Property>
<Property name='limit' type='string' key='limit'>
- Number of items returned, default 20, range 1-100
+ Number of items returned, optional, default 20, range 1-100
+ </Property>
+ <Property name='include_all' type='boolean' key='include_all'>
+ Whether to include all datasets (only effective for owners), optional, defaults to false
</Property>
</Properties>
</Col>
diff --git a/web/app/(commonLayout)/datasets/template/template.ja.mdx b/web/app/(commonLayout)/datasets/template/template.ja.mdx
index e2bdd27d801..45f3adfc4d8 100644
--- a/web/app/(commonLayout)/datasets/template/template.ja.mdx
+++ b/web/app/(commonLayout)/datasets/template/template.ja.mdx
@@ -386,11 +386,20 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
<Col>
### クエリ
<Properties>
+ <Property name='keyword' type='string' key='keyword'>
+ 検索キーワード、オプション
+ </Property>
+ <Property name='tag_ids' type='array[string]' key='tag_ids'>
+ タグIDリスト、オプション
+ </Property>
<Property name='page' type='string' key='page'>
- ページ番号
+ ページ番号、オプション、デフォルト1
</Property>
<Property name='limit' type='string' key='limit'>
- 返されるアイテム数、デフォルトは 20、範囲は 1-100
+ 返されるアイテム数、オプション、デフォルト20、範囲1-100
+ </Property>
+ <Property name='include_all' type='boolean' key='include_all'>
+ すべてのデータセットを含めるかどうか(所有者のみ有効)、オプション、デフォルトはfalse
</Property>
</Properties>
</Col>
diff --git a/web/app/(commonLayout)/datasets/template/template.zh.mdx b/web/app/(commonLayout)/datasets/template/template.zh.mdx
index 1d4e5ead6dd..20511b8cf77 100644
--- a/web/app/(commonLayout)/datasets/template/template.zh.mdx
+++ b/web/app/(commonLayout)/datasets/template/template.zh.mdx
@@ -387,11 +387,20 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
<Col>
### Query
<Properties>
- <Property name='page' type='string' key='page'>
- 页码
+ <Property name='keyword' type='string' key='keyword'>
+ 搜索关键词,可选
+ </Property>
+ <Property name='tag_ids' type='array[string]' key='tag_ids'>
+ 标签 ID 列表,可选
+ </Property>
+ <Property name='page' type='integer' key='page'>
+ 页码,可选,默认为 1
</Property>
<Property name='limit' type='string' key='limit'>
- 返回条数,默认 20,范围 1-100
+ 返回条数,可选,默认 20,范围 1-100
+ </Property>
+ <Property name='include_all' type='boolean' key='include_all'>
+ 是否包含所有数据集(仅对所有者生效),可选,默认为 false
</Property>
</Properties>
</Col>