backend_ollama: Ollama backend

View source: R/backend.R

backend_ollamaR Documentation

Ollama backend

Description

Talks to a locally-running Ollama server over HTTP. Each call sends one record's prompt to one model at the configured temperature, parses the JSON response, and returns the numeric relevance score plus the LLM's free-text explanation.

Usage

backend_ollama(
  ollama_url = getOption("screenllm.ollama_url"),
  timeout = 600,
  max_retries = 3L
)

Arguments

ollama_url

Base URL of the Ollama server.

timeout

Per-call timeout in seconds.

max_retries

Retries on transient errors.

Value

A backend object.


screenllm documentation built on Sept. 24, 2026, 5:11 p.m.