Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions contextframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ def from_arrow(
raw_data_type = tbl.get("raw_data_type", [None])[0]
else:
raw_data_type = None

# Ensure both are None if either is None (to satisfy FrameRecord validation)
if raw_data is None or raw_data_type is None:
raw_data = None
raw_data_type = None

# Determine embed_dim from the loaded vector
current_embed_dim = (
Expand Down
1 change: 1 addition & 0 deletions contextframe/io/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class ExportFormat(Enum):
MARKDOWN = "markdown" # .md - Human-readable with YAML frontmatter
TEXT = "text" # .txt - Plain text, simple format
JSON = "json" # .json - Structured data interchange
JSONL = "jsonl" # .jsonl - Newline-delimited JSON for streaming
PARQUET = "parquet" # .parquet - Columnar format for data analysis
CSV = "csv" # .csv - Tabular data for spreadsheets/analysis

Expand Down
Loading