API version: 0.3.0

---

# `TextEmbeddingStep`

## Properties

Extends: [`BaseStep`](/openapi-schema/base-step.md)

- `type`: `enum` — required

- `query`: `string` — required

  The text which is turned into a vector, or an expression in `{{ }}` which returns it. Requires the capability `embedding.create`.

  example: `"a hot drink made from roasted beans"`

- `parameters`: `object` — required
  - `provider`: `string` — required

    Name of the embedding provider of the configuration.

    example: `"openai"`

## Raw Schema

```json
{
  "allOf": [
    {
      "$ref": "#/components/schemas/BaseStep"
    },
    {
      "type": "object",
      "required": [
        "type",
        "query",
        "parameters"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "text-embedding"
          ]
        },
        "query": {
          "type": "string",
          "maxLength": 8192,
          "description": "The text which is turned into a vector, or an expression in `{{ }}` which returns it. Requires the capability `embedding.create`.",
          "example": "a hot drink made from roasted beans"
        },
        "parameters": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "provider"
          ],
          "properties": {
            "provider": {
              "type": "string",
              "description": "Name of the embedding provider of the configuration.",
              "example": "openai"
            }
          }
        }
      }
    }
  ]
}
```

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)
