Skip to content

Commit

Permalink
fix datasets en api description error
Browse files Browse the repository at this point in the history
The segment parameter for updating document segmentation is an object, not a list of objects
  • Loading branch information
Designerxsh authored Sep 5, 2024
1 parent 74c9099 commit c1e429e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/(commonLayout)/datasets/template/template.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from

### Request Body
<Properties>
<Property name='segment' type='object list' key='segment'>
<Property name='segment' type='object' key='segment'>
- <code>content</code> (text) text content/question content,required
- <code>answer</code> (text) Answer content, not required, passed if the Knowledge is in qa mode
- <code>keywords</code> (list) keyword, not required
Expand Down

0 comments on commit c1e429e

Please sign in to comment.