Method
upsertMultipleItemEmbeddings POST
Copy POST

Upserts a knn embedding for multiple item ids for a model_id.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes streamingToken str The streaming token for authenticating requests to the model.
Yes modelId str The unique string identifier of the model to upsert item embeddings to.
Yes upserts list A list of dictionaries of the form {'itemId': ..., 'vector': [...]} for each upsert.
No catalogId str Name of the catalog in the model to update.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error

Exceptions:

TYPE WHEN
DataNotFoundError

modelId is not found.

DataNotFoundError

catalogId is not found.

Language: