Skip to content

UploadDocumentRequest

← All HTTP schemas

Request to upload a document.

Shape: object

Property Required Type Description Rules
sourceId yes string Source identifier. Uploading again with the same identifier replaces the old one.
text no string Raw text. If given, the server chunks and embeds it.
chunks no array Ready-made chunks. If UploadDocumentChunk.Embedding is left empty, the server embeds it; if it is filled in, it is written as is.