Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
392995ca
Unverified
Commit
392995ca
authored
Feb 05, 2024
by
zxhlyh
Committed by
GitHub
Feb 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: knowledge doc (#2389)
parent
805ed84f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
template.en.mdx
web/app/(commonLayout)/datasets/template/template.en.mdx
+4
-4
template.zh.mdx
web/app/(commonLayout)/datasets/template/template.zh.mdx
+4
-4
No files found.
web/app/(commonLayout)/datasets/template/template.en.mdx
View file @
392995ca
...
@@ -873,7 +873,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
...
@@ -873,7 +873,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
---
---
<Heading
<Heading
url='/datasets/{dataset_id}/segments/{segment_id}'
url='/datasets/{dataset_id}/
documents/{document_id}/
segments/{segment_id}'
method='DELETE'
method='DELETE'
title='delete document segment'
title='delete document segment'
name='#delete_segment'
name='#delete_segment'
...
@@ -894,7 +894,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
...
@@ -894,7 +894,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
<CodeGroup
<CodeGroup
title="Request"
title="Request"
tag="DELETE"
tag="DELETE"
label="/datasets/{dataset_id}/segments/{segment_id}"
label="/datasets/{dataset_id}/
documents/{document_id}/
segments/{segment_id}"
targetCode={`curl --location --request DELETE '${props.apiBaseUrl}/datasets/{dataset_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'`}
targetCode={`curl --location --request DELETE '${props.apiBaseUrl}/datasets/{dataset_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'`}
>
>
```bash {{ title: 'cURL' }}
```bash {{ title: 'cURL' }}
...
@@ -916,7 +916,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
...
@@ -916,7 +916,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
---
---
<Heading
<Heading
url='/datasets/{dataset_id}/segments/{segment_id}'
url='/datasets/{dataset_id}/
documents/{document_id}/
segments/{segment_id}'
method='POST'
method='POST'
title='update document segment'
title='update document segment'
name='#update_segment'
name='#update_segment'
...
@@ -947,7 +947,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
...
@@ -947,7 +947,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
<CodeGroup
<CodeGroup
title="Request"
title="Request"
tag="POST"
tag="POST"
label="/datasets/{dataset_id}/segments/{segment_id}"
label="/datasets/{dataset_id}/
documents/{document_id}/
segments/{segment_id}"
targetCode={`curl --location --request POST '${props.apiBaseUrl}/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'\\\n--data-raw '{\"segments\": {\"content\": \"1\",\"answer\": \"1\", \"keywords\": [\"a\"], \"enabled\": false}}'`}
targetCode={`curl --location --request POST '${props.apiBaseUrl}/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'\\\n--data-raw '{\"segments\": {\"content\": \"1\",\"answer\": \"1\", \"keywords\": [\"a\"], \"enabled\": false}}'`}
>
>
```bash {{ title: 'cURL' }}
```bash {{ title: 'cURL' }}
...
...
web/app/(commonLayout)/datasets/template/template.zh.mdx
View file @
392995ca
...
@@ -873,7 +873,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
...
@@ -873,7 +873,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
---
---
<Heading
<Heading
url='/datasets/{dataset_id}/segments/{segment_id}'
url='/datasets/{dataset_id}/
documents/{document_id}/
segments/{segment_id}'
method='DELETE'
method='DELETE'
title='删除文档分段'
title='删除文档分段'
name='#delete_segment'
name='#delete_segment'
...
@@ -894,7 +894,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
...
@@ -894,7 +894,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
<CodeGroup
<CodeGroup
title="Request"
title="Request"
tag="DELETE"
tag="DELETE"
label="/datasets/{dataset_id}/segments/{segment_id}"
label="/datasets/{dataset_id}/
documents/{document_id}/
segments/{segment_id}"
targetCode={`curl --location --request DELETE '${props.apiBaseUrl}/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'`}
targetCode={`curl --location --request DELETE '${props.apiBaseUrl}/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'`}
>
>
```bash {{ title: 'cURL' }}
```bash {{ title: 'cURL' }}
...
@@ -916,7 +916,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
...
@@ -916,7 +916,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
---
---
<Heading
<Heading
url='/datasets/{dataset_id}/segments/{segment_id}'
url='/datasets/{dataset_id}/
documents/{document_id}/
segments/{segment_id}'
method='POST'
method='POST'
title='更新文档分段'
title='更新文档分段'
name='#update_segment'
name='#update_segment'
...
@@ -947,7 +947,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
...
@@ -947,7 +947,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
<CodeGroup
<CodeGroup
title="Request"
title="Request"
tag="POST"
tag="POST"
label="/datasets/{dataset_id}/segments/{segment_id}"
label="/datasets/{dataset_id}/
documents/{document_id}/
segments/{segment_id}"
targetCode={`curl --location --request POST '${props.apiBaseUrl}/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'\\\n--data-raw '{\"segments\": {\"content\": \"1\",\"answer\": \"1\", \"keywords\": [\"a\"], \"enabled\": false}}'`}
targetCode={`curl --location --request POST '${props.apiBaseUrl}/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'\\\n--data-raw '{\"segments\": {\"content\": \"1\",\"answer\": \"1\", \"keywords\": [\"a\"], \"enabled\": false}}'`}
>
>
```bash {{ title: 'cURL' }}
```bash {{ title: 'cURL' }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment