Skip to contents

Writes a chunk table to a retrieval-friendly format. parquet and jsonl preserve the embedding list-column natively; csv and duckdb serialise it to a [...] string for portability.

Usage

cr_export(
  data,
  path,
  format = c("parquet", "jsonl", "csv", "duckdb"),
  table = "chunks"
)

Arguments

data

A data frame (typically from cr_chunk() / cr_embed()).

path

Output file (or database) path.

format

One of "parquet", "jsonl", "csv", "duckdb".

table

Table name for the "duckdb" format.

Value

path, invisibly.