Skip to main content
Generate vector embeddings from text using locally hosted Ollama models. Embeddings are numerical representations of text that capture semantic meaning, ideal for semantic search, recommendations, and clustering without sending data to external APIs.

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.