embed_text.Rd
Generates embeddings of text chunks as a matrix.
embed_text(x, text, ndim, ...)
The Agent object, whose underlying model should be
specialized for generating embeddings, like nomic
.
A data.frame, typically generated via chunk
, with
a “text” column containing text chunks to embed.
The dimensionality of the embedding (the length of the each
embedding vector). If NULL
, it uses the model default.
Arguments passed to the embedding backend
A matrix containing embedding coordinates, with one row per row of
data
and ndim
columns.
For convenience, just pass the text chunks to
text_store
, which automatically generates embeddings by
default.