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 group ID, from GET /v1/knowledge/groups

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 group has no documents; nothing was queued.

knowledgeFolderId
string
queuedCount
integer

Documents queued for processing by this request.

documentIds
string[]

The queued documents.

skipped
object
nextAvailableAt
string<date-time> | null

The earliest time another request could start more of this group - now for deferred documents, 30 seconds for contended, a cooldown's end for a document that fits what is left, or the month's reset. Null if nothing was skipped for a limit.

queuedBytes
integer

Total file size of the queued documents, counted against the monthly allowance. A file replaced in storage with a larger one counts at its stored size.

monthlyAllowance
object | null

This month's knowledge allowance after this request, shared with uploads. Null if it could not be read.

folderSettingsUpdated
boolean

With settings recommended or a chunkSize and chunkOverlap, whether the group's own chunk settings are now that pair. False if nothing was queued, if they were changed while this request ran (that change is kept), or if the update failed; check GET /v1/knowledge/groups/{id}. Always false for current.