Skip to main content

TextEmbeddingStep

Properties

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

{
"allOf": [
{
},
{
"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"
}
}
}
}
}
]
}