embed_google_vertex {ragnar} | R Documentation |
Embed using Google Vertex API platform
Description
Embed using Google Vertex API platform
Usage
embed_google_vertex(
x,
model,
location,
project_id,
task_type = "RETRIEVAL_QUERY"
)
Arguments
x |
x can be:
|
model |
Character specifying the embedding model. See supported models in Text embeddings API |
location |
Location, e.g. |
project_id |
Project ID. |
task_type |
Used to convey intended downstream application to help the
model produce better embeddings. If left blank, the default used is
|
Examples
## Not run:
embed_google_vertex(
"hello world",
model="gemini-embedding-001",
project = "<your-project-id>",
location = "us-central1"
)
## End(Not run)