Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Knowledge document ID

Body

application/json

Optional. An empty body is current. Give either settings, or chunkSize and chunkOverlap together, not both.

settings
enum<string>
default:current

current uses each document's own chunkSize and chunkOverlap if it has them, else its group's. recommended uses Anam's recommended chunk settings (350 and 0) whatever the document or group sets, and clears the document's own, so it follows its group again on later reprocesses. On a group it also sets the group's chunk settings to the recommended ones. Every reprocess embeds with the organization's current embedding model.

Available options:
current,
recommended
chunkSize
integer

With chunkOverlap, the chunk pair to use instead of settings, in tokens, as on upload. On a document it becomes the document's own chunk settings. On a group it becomes the group's, and its documents drop their own and follow it. JSON documents are kept whole (split only when large) whatever the pair.

Required range: 100 <= x <= 2000
chunkOverlap
integer

Tokens shared by neighbouring chunks, at most half of chunkSize. Given with chunkSize.

Required range: 0 <= x <= 1000

Response

The document is queued for processing and its status is now PROCESSING.

documentId
string
knowledgeFolderId
string
filename
string
status
enum<string>
Available options:
PROCESSING