Enabling provenance
Passexplain=True to Table.search:
Provenance record schema
Retrieval tiers
Drop stages
Common debugging patterns
Find a specific document’s fate
Compare BM25 vs HNSW agreement
Measure tier latency (future)
latency_us on each TierTrace is reserved for per-tier timing — currently emitted as 0 and will be populated in a future release. Use total_latency_ms for end-to-end wall time.
Persistent search log
Every search withexplain=True appends a JSON record to <db>/<table>/_search_log.ndjson. This file is newline-delimited JSON (one record per line).
SQL provenance
EXPLAIN on a retrieval query in SQL executes the search and returns the provenance JSON as the explanation text:
COUNT(*), GROUP BY), EXPLAIN still returns a plan string rather than provenance.