WeaviateEx.API.Vectorizers.Text2VecOllama (WeaviateEx v0.7.4)
View SourceText2Vec-Ollama vectorizer configuration.
Uses Ollama for local text embedding. Requires a running Ollama instance.
Example
Text2VecOllama.new(
api_endpoint: "http://localhost:11434",
model: "llama2"
)
Summary
Functions
Parse configuration from API response.
Create a new Text2Vec-Ollama configuration.
Convert configuration to API format.
Returns the vectorizer name for the API.
Types
Functions
Parse configuration from API response.
Create a new Text2Vec-Ollama configuration.
Options
:api_endpoint- Ollama API endpoint (default: http://localhost:11434):model- Ollama model name (e.g., "llama2", "mistral"):vectorize_collection_name- Include collection name (default: true)
Convert configuration to API format.
@spec vectorizer_name() :: String.t()
Returns the vectorizer name for the API.