younifyd
Menu

Get Embeddings Index Settings

Get embeddings index settings for a dataset

GET/projects/{projectId}/datasets/{name}/settings/embeddings

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Get Embeddings Index Settings action (under Projects).
  3. Fill in the fields below, then reference the result from later steps as {{getEmbeddingsIndexSettings.response.data}}.

Request

Path parameters

projectIdstringrequired

The unique ID of the project.

namestringrequired

The name of the dataset.

Response

Returns 200 with an object. Read it in later steps with {{getEmbeddingsIndexSettings.response.data.<field>}}.

enabledboolean
projectionstring

The GROQ projection that defines which fields to include in the embeddings index. If you don't include a projection, we process the entire document JSON into a less verbose format and embed all of it. Example: "{title, author}" or "{...}" for all fields

statusstring

The status of the embeddings index. `disabled` when embeddings are off, `unknown` when the status couldn't be fetched, and otherwise `ready`, `updating`, or `error`.

One ofreadyupdatingerrordisabledunknown

json
{
  "enabled": false,
  "projection": "{title, author}",
  "status": "updating"
}

Need more? See the Sanity guide for connection setup and behaviour shared by every action.