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.

fix: update Knowledge Api doc: 【Update a Chunk in a Document】 (#15823)

過世秋風98bd79f5489d
diff --git a/web/app/(commonLayout)/datasets/template/template.en.mdx b/web/app/(commonLayout)/datasets/template/template.en.mdx
index ac57e3aef22..c276f55a23f 100644
--- a/web/app/(commonLayout)/datasets/template/template.en.mdx
+++ b/web/app/(commonLayout)/datasets/template/template.en.mdx
@@ -1313,7 +1313,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
<CodeGroup title="Response">
```json {{ title: 'Response' }}
{
- "data": [{
+ "data": {
"id": "",
"position": 1,
"document_id": "",
@@ -1337,7 +1337,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
"completed_at": 1695312007,
"error": null,
"stopped_at": null
- }],
+ },
"doc_form": "text_model"
}
```
diff --git a/web/app/(commonLayout)/datasets/template/template.zh.mdx b/web/app/(commonLayout)/datasets/template/template.zh.mdx
index 0e5857c4464..db72ef9a08b 100644
--- a/web/app/(commonLayout)/datasets/template/template.zh.mdx
+++ b/web/app/(commonLayout)/datasets/template/template.zh.mdx
@@ -1319,7 +1319,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
<CodeGroup title="Response">
```json {{ title: 'Response' }}
{
- "data": [{
+ "data": {
"id": "",
"position": 1,
"document_id": "",
@@ -1343,7 +1343,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
"completed_at": 1695312007,
"error": null,
"stopped_at": null
- }],
+ },
"doc_form": "text_model"
}
```