embed_databricks {ragnar} | R Documentation |
Embed text using a Databricks model
Description
embed_databricks()
gets embeddings for text using a model hosted in a
Databricks workspace. It relies on the ellmer package for managing
Databricks credentials. See ellmer::chat_databricks
for more on
supported modes of authentication.
Usage
embed_databricks(
x,
workspace = databricks_workspace(),
model = "databricks-bge-large-en",
batch_size = 512L
)
Arguments
x |
x can be:
|
workspace |
The URL of a Databricks workspace, e.g.
|
model |
The name of a text embedding model. |
batch_size |
split |