embeddingForDataSource
Query
Generate an embedding vector of a data source’s asset at a specified timestamp
Response
Returns EmbeddingResponse
Arguments
| Name | Type | Description |
|---|---|---|
dataSourceId | ID! | The ID of the data source |
timestamp | DateTimeOffset! | The time at which the embedding vector will be generated |
options | EmbeddingOptionsInput | Optional embedding parameters. |
Example
query embeddingForDataSource( $dataSourceId: ID!, $timestamp: DateTimeOffset!, $options: EmbeddingOptionsInput) { embeddingForDataSource( dataSourceId: $dataSourceId, timestamp: $timestamp, options: $options ) { results { embedding regionIndex } }}{ "dataSourceId": "20516cfa-f7eb-837d-9fb4-21879f6c903d", "timestamp": "2025-01-01T00:00:00.000Z"}{ "data": { "embeddingForDataSource": { "results": [ { "embedding": [ 361.13 ], "regionIndex": 459 } ] } }}