Upsert embeddings

http
POST /projects/{project_reference}/embeddings

Upsert embeddings. Requires project.knowledge.write.

Parameters

NameInRequiredDescription
project_referencepathYes

Request body

FieldTypeRequiredDescription
chunk_idsarrayYesChunk IDs to upsert embeddings for.
vectorsarrayYesEmbedding vectors aligned by index with chunk_ids.
modelobjectYesEmbedding model that produced these vectors. Not an agent chat model; model listings omit it.

Responses

StatusDescription
200Upsert results. Stores embeddings generated by clients for project file chunks.
400Invalid request.
401Unauthorized
403Forbidden
404Project not found
500Server error