Samples
Generate an embedding
Create a vector embedding using a local model:Specify Ollama host
Connect to a specific Ollama server:Configure model options
Customize the embedding generation:Store embeddings in a table
Generate and store embeddings for your data:Arguments
Returns
vector: A pgvector compatible vector containing the embedding.
Related functions
ollama_generate(): generate text completionsollama_chat_complete(): chat with local modelsollama_list_models(): see available models