Documents and segments¶
View source files and processing result images, or maintain a snapshot of the current segment of the knowledge base document. Modify data.etag in the read details before segmentation, and submit it through if_match or If-Match when writing. Use the ETag of the returned snapshot after each modification.
Select task¶
Task |
interface |
Description |
|---|---|---|
Query knowledge base document details |
Read the current snapshot, ETag, and segmented paging cursor. |
|
Read source original file |
Preview the original file associated with the knowledge base as a binary stream. |
|
Read the image generated by the analysis |
Preview the products generated by knowledge base file parsing, such as parsing images, in a binary stream. |
|
Create document segments |
Creates a segment in the current snapshot of the source. |
|
Update document segments |
Updates the contents of the specified section. |
|
Enable or disable document segmentation |
Update the enabled status of the specified segment and control whether the segment participates in retrieval. |
|
Delete document segments |
Delete the specified segment in the current snapshot. Not recoverable and at least one segment must be retained. |
|
Revectorize the knowledge base data source |
Revectorize enabled segments and return to document snapshot after completion of writing. |
The initial segment import and historical version switching interfaces have been removed. When supplementing content, use the Create Segmentation interface. Enabling or disabling a segment only changes whether it participates in retrieval, and does not restore historical content.