Skip to main content

embeddings

Creates, updates, deletes, gets or lists an embeddings resource.

Overview

Nameembeddings
TypeResource
Iddigitalocean.inference.embeddings

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
inference_create_embeddingexecmodel, inputCreate vector embeddings for one or more text inputs. OpenAI-compatible request and response. Unknown fields in the request body are rejected. There is no streaming response for this endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

Lifecycle Methods

Create vector embeddings for one or more text inputs. OpenAI-compatible request and response. Unknown fields in the request body are rejected. There is no streaming response for this endpoint.

EXEC digitalocean.inference.embeddings.inference_create_embedding
@@json=
'{
"model": "{{ model }}",
"input": "{{ input }}",
"user": "{{ user }}",
"encoding_format": "{{ encoding_format }}"
}'
;