OllamaEmbeddingProvider

org.llm4s.llmconnect.provider.OllamaEmbeddingProvider

Embedding provider implementation for Ollama, a local model inference server.

Generates text embeddings by calling the Ollama /api/embeddings HTTP endpoint. Each input text is embedded individually (one HTTP request per text) because the Ollama embedding API accepts a single prompt per call. Results are collected and returned as an org.llm4s.llmconnect.model.EmbeddingResponse.

No API key is required when Ollama runs locally, though one can be supplied for remote or authenticated deployments.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Creates an EmbeddingProvider backed by Ollama using the given configuration.

Creates an EmbeddingProvider backed by Ollama using the given configuration.

Attributes