Skip to contents

Sends a character vector to the configured backend and returns embeddings as a numeric matrix.

Usage

embed_texts(texts, backend = backend_config())

Arguments

texts

Character vector of texts to embed. Empty inputs return a 0-row matrix; missing values are not supported.

backend

Backend configuration created with backend_config().

Value

A numeric matrix with one row per input text and one column per embedding dimension.