Kreuzberg.CsvMetadata (kreuzberg v4.9.5)

Copy Markdown View Source

CSV/TSV file metadata.

Matches the Rust CsvMetadata struct.

Fields

  • :row_count - Number of rows
  • :column_count - Number of columns
  • :delimiter - Delimiter character (e.g., "," or "\t")
  • :has_header - Whether the file has a header row
  • :column_types - Detected column types

Summary

Types

t()

@type t() :: %Kreuzberg.CsvMetadata{
  column_count: non_neg_integer(),
  column_types: [String.t()] | nil,
  delimiter: String.t() | nil,
  has_header: boolean(),
  row_count: non_neg_integer()
}

Functions

from_map(data)

@spec from_map(map()) :: t()

to_map(meta)

@spec to_map(t()) :: map()