Browse Source

fix(docs): update API documentation to replace 'Params' with 'Path' (#18004)

tags/1.3.0
GuanMu 6 months ago
parent
commit
f40e22dda6
No account linked to committer's email address

+ 22
- 22
web/app/(commonLayout)/datasets/template/template.en.mdx View File

<Col> <Col>
This API is based on an existing knowledge and creates a new document through text based on this knowledge. This API is based on an existing knowledge and creates a new document through text based on this knowledge.


### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
<Col> <Col>
This API is based on an existing knowledge and creates a new document through a file based on this knowledge. This API is based on an existing knowledge and creates a new document through a file based on this knowledge.


### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Query
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge Base ID Knowledge Base ID
/> />
<Row> <Row>
<Col> <Col>
### Query
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge Base ID Knowledge Base ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
<Col> <Col>
This API is based on an existing knowledge and updates the document through text based on this knowledge. This API is based on an existing knowledge and updates the document through text based on this knowledge.


### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
<Col> <Col>
This API is based on an existing knowledge, and updates documents through files based on this knowledge This API is based on an existing knowledge, and updates documents through files based on this knowledge


### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
title="Request" title="Request"
tag="DELETE" tag="DELETE"
label="/datasets/{dataset_id}/documents/{document_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}/documents/{document_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'`}
> >
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl --location --request DELETE '${props.apiBaseUrl}/datasets/{dataset_id}/segments/{segment_id}' \
curl --location --request DELETE '${props.apiBaseUrl}/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}' \
--header 'Authorization: Bearer {api_key}' \ --header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' --header 'Content-Type: application/json'
``` ```
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
Knowledge ID Knowledge ID

+ 19
- 19
web/app/(commonLayout)/datasets/template/template.ja.mdx View File

<Col> <Col>
この API は既存のナレッジに基づいており、このナレッジを基にテキストを使用して新しいドキュメントを作成します。 この API は既存のナレッジに基づいており、このナレッジを基にテキストを使用して新しいドキュメントを作成します。


### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
<Col> <Col>
この API は既存のナレッジに基づいており、このナレッジを基にファイルを使用して新しいドキュメントを作成します。 この API は既存のナレッジに基づいており、このナレッジを基にファイルを使用して新しいドキュメントを作成します。


### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
<Col> <Col>
この API は既存のナレッジに基づいており、このナレッジを基にテキストを使用してドキュメントを更新します。 この API は既存のナレッジに基づいており、このナレッジを基にテキストを使用してドキュメントを更新します。


### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
<Col> <Col>
この API は既存のナレッジに基づいており、このナレッジを基にファイルを使用してドキュメントを更新します。 この API は既存のナレッジに基づいており、このナレッジを基にファイルを使用してドキュメントを更新します。


### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
title="リクエスト" title="リクエスト"
tag="DELETE" tag="DELETE"
label="/datasets/{dataset_id}/documents/{document_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}/documents/{document_id}/segments/{segment_id}' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'`}
> >
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl --location --request DELETE '${props.apiBaseUrl}/datasets/{dataset_id}/segments/{segment_id}' \
curl --location --request DELETE '${props.apiBaseUrl}/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}' \
--header 'Authorization: Bearer {api_key}' \ --header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' --header 'Content-Type: application/json'
``` ```
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID
/> />
<Row> <Row>
<Col> <Col>
### パラメータ
### パ
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
ナレッジ ID ナレッジ ID

+ 11
- 7
web/app/(commonLayout)/datasets/template/template.zh.mdx View File

/> />
<Row> <Row>
<Col> <Col>
### Query
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
知识库 ID 知识库 ID
/> />
<Row> <Row>
<Col> <Col>
### Query
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
知识库 ID 知识库 ID
</Property> </Property>
</Properties>

### Request Body
<Properties>
<Property name='indexing_technique' type='string' key='indexing_technique'> <Property name='indexing_technique' type='string' key='indexing_technique'>
索引模式(选填,建议填写) 索引模式(选填,建议填写)
- <code>high_quality</code> 高质量 - <code>high_quality</code> 高质量
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
知识库 ID 知识库 ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
知识库 ID 知识库 ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
知识库 ID 知识库 ID
/> />
<Row> <Row>
<Col> <Col>
### Params
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
知识库 ID 知识库 ID
/> />
<Row> <Row>
<Col> <Col>
### Query
### Path
<Properties> <Properties>
<Property name='dataset_id' type='string' key='dataset_id'> <Property name='dataset_id' type='string' key='dataset_id'>
知识库 ID 知识库 ID

Loading…
Cancel
Save