feat(observability): add chunk reconcile metric and kill-switch flag

surfsense.indexing.reconcile.chunks counts reused/embedded/deleted chunks per
re-index. CHUNK_RECONCILE_ENABLED (default on) falls back to delete-all +
full re-embed if the diff path ever misbehaves.
This commit is contained in:
CREDO23 2026-06-12 18:52:57 +02:00
parent 8d413ea5c2
commit fd495e1b2f
3 changed files with 35 additions and 0 deletions

View file

@ -342,6 +342,11 @@ EMBEDDING_CACHE_ENABLED=false
# Rows deleted per eviction pass.
# EMBEDDING_CACHE_EVICTION_BATCH=500
# Incremental re-indexing: on document edits, keep chunks whose text is
# unchanged (reusing their embeddings) and embed only new/changed ones.
# Set to false to fall back to delete-all + full re-embed (kill switch).
# CHUNK_RECONCILE_ENABLED=true
# Daytona Sandbox (isolated code execution)
# DAYTONA_SANDBOX_ENABLED=FALSE
# DAYTONA_API_KEY=your-daytona-api-key