Skip to content

Ollama

Node: ollama · Full type: @n8n/n8n-nodes-langchain.ollama · Version: 1

Credentials

ollamaApi (alias: @ollama)

CREDENTIAL @ollama = ollamaApi "My Ollama"

Operations

Resource: image

analyze

Parameter Type Default Details
modelId resourceLocator {...} required; modes: list, id
text string "What's in this image?"
inputType options "binary" binary, url
binaryPropertyName string "data"
imageUrls string ""
simplify boolean true
options collection {} keys: system, temperature, top_p, top_k, num_predict, frequency_penalty, ...

Resource: text

message

Parameter Type Default Details
modelId resourceLocator {...} required; modes: list, id
messages fixedCollection {...} groups: values
simplify boolean true
options collection {} keys: system, temperature, top_p, top_k, num_predict, frequency_penalty, ...

Parameter Details

options children:

Parameter Type Default Details
system string ""
temperature number 0.8
top_p number 0.7
top_k number 40
num_predict number 1024
frequency_penalty number 0
presence_penalty number 0
repeat_penalty number 1.1
num_ctx number 4096
repeat_last_n number 64
min_p number 0
seed number 0
stop string ""
keep_alive string "5m"
low_vram boolean false
main_gpu number 0
num_batch number 512
num_gpu number -1
num_thread number 0
penalize_newline boolean true
use_mlock boolean false
use_mmap boolean true
vocab_only boolean false
format options "" `,json`

messages children:

values group:

Parameter Type Default Details
content string ""
role options "user" user, assistant

Example

NODE "ollama" @ollama AS "Ollama" {
  resource: "image",
  operation: "analyze"
}