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

Query knowledge base document details

Read the current snapshot, ETag, and segmented paging cursor.

Read source original file

Preview source file

Preview the original file associated with the knowledge base as a binary stream.

Read the image generated by the analysis

Preview processing result picture

Preview the products generated by knowledge base file parsing, such as parsing images, in a binary stream.

Create document segments

Create document segment

Creates a segment in the current snapshot of the source.

Update document segments

Update document segment

Updates the contents of the specified section.

Enable or disable document segmentation

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 document segment

Delete the specified segment in the current snapshot. Not recoverable and at least one segment must be retained.

Revectorize the knowledge base data source

Revectorization 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.

Last updated on