Samples
List all models
See all installed models:Connect to specific host
List models from a remote Ollama server:Filter by model name
Find a specific model:Check model sizes
See how much disk space models are using:Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
host | TEXT | NULL | ✖ | Ollama server URL (defaults to http://localhost:11434) |
verbose | BOOLEAN | FALSE | ✖ | Enable verbose logging for debugging |
Returns
TABLE: A table with the following columns:
| Column | Type | Description |
|---|---|---|
name | TEXT | Model name (e.g., llama2, mistral:7b) |
model | TEXT | Full model identifier |
size | BIGINT | Model size in bytes |
digest | TEXT | SHA256 digest of the model |
family | TEXT | Model family (e.g., llama, mistral) |
format | TEXT | Model format (typically gguf) |
families | JSONB | Array of model families |
parent_model | TEXT | Parent model if this is a derivative |
parameter_size | TEXT | Number of parameters (e.g., 7B, 13B) |
quantization_level | TEXT | Quantization level (e.g., Q4_0, Q5_K_M) |
modified_at | TIMESTAMPTZ | Last modification timestamp |
Related functions
ollama_ps(): see currently running modelsollama_embed(): generate embeddings with a modelollama_chat_complete(): chat with a model