embed_text
Convert text into vector embeddings for similarity search and downstream machine learning tasks. Supports configurable dimensions and L2 normalization for cosine similarity.
Instructions
Embed text(s) into vectors.
Args: texts: One or more strings to embed. dim: Matryoshka truncation dimension; one of 512, 256, 128, 64, 32. normalize: L2-normalize the output (recommended for cosine similarity).
Returns a dict with the embeddings (list of float lists) and dimension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dim | No | ||
| texts | Yes | ||
| normalize | No |