call_llm.gemini_embedding | R Documentation |
This function handles embedding requests specifically for Gemini embedding models. It processes text inputs and returns embedding vectors using Google's Generative Language API.
## S3 method for class 'gemini_embedding'
call_llm(config, messages, verbose = FALSE, json = FALSE)
config |
A configuration object created by llm_config() with provider="gemini" |
messages |
Character vector of texts to embed, or list of message objects |
verbose |
Logical indicating whether to print request details (default: FALSE) |
json |
Logical indicating whether to return raw JSON response (default: FALSE) |
List containing embedding data in standard LLMR format
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.