Skip to main content

add_file(table, path, chunk_by="paragraph") -> int

Read a UTF-8 file and ingest chunks.
chunk_by
str
default:"paragraph"
paragraph (split on blank lines) or line.
from toradb.ingest import add_file
add_file(table, "notes.txt", chunk_by="paragraph")

add_dataframe(table, df) -> int

Convert a pandas DataFrame with to_dict(orient="records") and call table.add.

add_arrow(table, arrow_table) -> int

Prefer table.add_arrow when available; otherwise falls back to row-wise conversion. Requires pyarrow. See Ingest guide.