Skip to main content

When to reindex

Reindex after:
  • Bulk ingest of many documents
  • Changing embedding dimensions or index type
  • Search misses results you expect from a fresh index

Python / SQL

Or:

CLI

Index types

DiskANN graphs need enough embedded documents to build (typically 32+ rows with valid embedding vectors). Smaller tables may fall back or skip graph build.

Compact segments

Merge small Parquet segments to reduce file count:
Optional environment tuning (advanced):
  • TORADB_COMPACT_MAX_SEGMENTS
  • TORADB_COMPACT_MIN_MERGE
  • TORADB_COMPACT_SMALL_BYTES
After compacting, run DESCRIBE table to confirm segment counts. See On-disk layout.