Skip to main content
Section ID: DOC-API-MODEL-schema-q92tfl8qp2#overview

TextDocument

Text and associated metadata submitted for an embedding-assisted upsert. id identifies the vector record, text supplies the content to embed, and metadata carries additional attributes.

Type-reference view: API Schema t0tqko5pgb. Request and response views describe this type; they do not declare an endpoint.

Meaning and usage​

Section ID: DOC-API-MODEL-schema-q92tfl8qp2#meaning

See the definition above.

Usage profiles​

Section ID: DOC-API-MODEL-schema-q92tfl8qp2#fields

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

Section ID: DOC-API-MODEL-schema-q92tfl8qp2#request

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-q92tfl8qp2#request-field-ididstringRequired in requestsIdentifier used to associate embedded text with its vector record. Minimum length: 1.
Section ID: DOC-API-MODEL-schema-q92tfl8qp2#request-field-texttextstringRequired in requestsText content supplied for the embedding or document. Minimum length: 1.
Section ID: DOC-API-MODEL-schema-q92tfl8qp2#request-field-metadatametadataMap from string to JSON valueOptionalAdditional attributes associated with the resource.

Request validation​

Section ID: DOC-API-MODEL-schema-q92tfl8qp2#request-validation

These rules apply when this value is supplied in a request. Request validation does not guarantee that response fields are present or satisfy the same rules.

Applies toRuleRequirement
idMinimum length1
textMinimum length1

In responses​

Section ID: DOC-API-MODEL-schema-q92tfl8qp2#response

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-q92tfl8qp2#field-idSection ID: DOC-API-MODEL-schema-q92tfl8qp2#response-field-ididstringRequired in requestsIdentifier used to associate embedded text with its vector record.
Section ID: DOC-API-MODEL-schema-q92tfl8qp2#field-textSection ID: DOC-API-MODEL-schema-q92tfl8qp2#response-field-texttextstringRequired in requestsText content supplied for the embedding or document.
Section ID: DOC-API-MODEL-schema-q92tfl8qp2#field-metadataSection ID: DOC-API-MODEL-schema-q92tfl8qp2#response-field-metadatametadataMap from string to JSON valueOptionalAdditional attributes associated with the resource.
Section ID: DOC-API-MODEL-schema-q92tfl8qp2#validation

Request validation​

Section ID: DOC-API-MODEL-schema-q92tfl8qp2#response-validation

These rules apply when this value is supplied in a request. Request validation does not guarantee that response fields are present or satisfy the same rules.

Applies toRuleRequirement
idMinimum length1
textMinimum length1

Where used​

Section ID: DOC-API-MODEL-schema-q92tfl8qp2#where-used

ReferenceRelationship
TextDocumentAPI JSON uses JSON field names (camelCase).

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-q92tfl8qp2