Upsert embeddings

upsertEmbeddings(input: UpsertEmbeddingsInput!): UpsertEmbeddingsPayload!

Requires project.knowledge.write.

Arguments

ArgumentTypeRequired
inputUpsertEmbeddingsInput!Yes

Input fields

input

UpsertEmbeddingsInput

FieldTypeRequired
chunkIds[ID!]!Yes
vectors[[Float!]!]!Yes
modelEmbeddingModelInput!Yes

Response

Returns UpsertEmbeddingsPayload!. Open the type for its fields and nested types.

FieldType
embeddings[EmbeddingInfo!]!
createdInt!
updatedInt!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
mutation UpsertEmbeddings($input: UpsertEmbeddingsInput!) {  upsertEmbeddings(input: $input) {    created    updated  }}
variables.json
{  "input": {    "chunkIds": [],    "vectors": [],    "model": {      "name": "example",      "provider": "example",      "dimension": "D768"    }  }}