Skip to content

embeddingForDataSource

Query

Generate an embedding vector of a data source’s asset at a specified timestamp

Response

Returns EmbeddingResponse

Arguments

NameTypeDescription
dataSourceIdID!

The ID of the data source

timestampDateTimeOffset!

The time at which the embedding vector will be generated

optionsEmbeddingOptionsInput

Optional embedding parameters.

Example

query embeddingForDataSource(
$dataSourceId: ID!,
$timestamp: DateTimeOffset!,
$options: EmbeddingOptionsInput
) {
embeddingForDataSource(
dataSourceId: $dataSourceId,
timestamp: $timestamp,
options: $options
) {
results {
embedding
regionIndex
}
}
}