Run SentenceTransformers on a reusable local handle. Prediction never
downloads a model or falls back to hosted inference. Input order and
duplicates are preserved. Missing texts retain NULL embeddings and
NA_integer_ dimensions; zero-length and all-missing inputs do not call
Python. Empty strings are valid texts. The model's own maximum sequence
length controls truncation of long texts.
Value
A tibble with text, embedding (a list of numeric vectors),
and integer n_dims, matching the schema of hf_embed().
Examples
if (FALSE) { # \dontrun{
model <- hf_load_local_model(task = "embed")
hf_embed_local(c("Hello", NA, "Hello"), model, normalize = TRUE)
} # }