View source: R/embed-snowflake.R
| embed_snowflake | R Documentation |
Uses the Cortex API EMBED
functions to generate embeddings.
embed_snowflake(
x,
account = snowflake_account(),
credentials = NULL,
model = "snowflake-arctic-embed-m-v1.5",
api_args = list(),
batch_size = 512L
)
x |
x can be:
|
account |
A Snowflake account identifier,
e.g. |
credentials |
A list of authentication headers to pass into
|
model |
string; model name |
api_args |
Named list of arbitrary extra arguments appended to the body
of every chat API call. Combined with the body object generated by ellmer
with |
batch_size |
split |
a Programmatic Access Token (PAT) defined via the SNOWFLAKE_PAT environment variable.
A static OAuth token defined via the SNOWFLAKE_TOKEN environment variable.
Key-pair authentication credentials defined via the SNOWFLAKE_USER and SNOWFLAKE_PRIVATE_KEY (which can be a PEM-encoded private key or a path to one) environment variables.
Posit Workbench-managed Snowflake credentials for the corresponding account.
Viewer-based credentials on Posit Connect. Requires the connectcreds package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.