OverviewArchitectureRecipeSourceProcessorSinkContext Graph for AI
OverviewArchitectureRecipeSourceProcessorSinkContext Graph for AI

File

Writes records to a file on the local disk. Output is NDJSON or YAML.

Usage

sinks:
  - name: file
    config:
      path: ./output.ndjson
      format: ndjson

Configuration

KeyTypeDescriptionRequired
pathstringPath to the output file. Must include a file name with an extension, e.g. ./out.ndjson.required
formatstringndjson writes one JSON line per record. Any other value writes the batch as a YAML list.required
overwritebooleantrue (default) replaces the file on each run. false appends to it.optional

Output format

Each record is the whole record: {"entity": {...}, "edges": [...]} with snake_case keys. The edges field is left out when a record has no edges. With format: ndjson, each record is one JSON line. With any other format value, each batch is written as a YAML list of records.

ConsoleGoogle Cloud Storage
On this page
UsageConfigurationOutput format