Generate Embeddings Using Ollama API
ollama_embedding(
.input,
.model = "all-minilm",
.truncate = TRUE,
.ollama_server = "http://localhost:11434",
.timeout = 120,
.dry_run = FALSE
)
A matrix where each column corresponds to the embedding of a message in the message history.
Aa charachter vector of texts to embed or an LLMMessage
object
The embedding model identifier (default: "all-minilm").
Whether to truncate inputs to fit the model's context length (default: TRUE).
The URL of the Ollama server to be used (default: "http://localhost:11434").
Timeout for the API request in seconds (default: 120).
If TRUE, perform a dry run and return the request object.