Learn R Programming

localLLM (version 1.1.0)

annotation_sink_csv: Create a CSV sink for streaming annotation chunks

Description

The returned closure can be passed to `explore(sink = ...)` to append each per-model chunk to a CSV file without holding everything in memory.

Usage

annotation_sink_csv(path, append = FALSE)

Value

A function with signature `(chunk, model_id)`.

Arguments

path

Destination CSV path.

append

If `TRUE`, new chunks are appended to an existing file.