From a036b5241dfcb4dcb7e873467d189dca2c625288 Mon Sep 17 00:00:00 2001 From: stumpylog <797416+stumpylog@users.noreply.github.com> Date: Tue, 9 Jun 2026 09:48:59 -0700 Subject: [PATCH] fix(ai): drop false attribution from ANN_INDEX_MIN_ROWS comment Co-Authored-By: Claude Sonnet 4.6 --- src/paperless_ai/vector_store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paperless_ai/vector_store.py b/src/paperless_ai/vector_store.py index fbefaaf8d..6c2af2414 100644 --- a/src/paperless_ai/vector_store.py +++ b/src/paperless_ai/vector_store.py @@ -48,8 +48,8 @@ class Migration: # 4. For embedding-invalidating changes, set requires_reembed=True; apply() can be a no-op. MIGRATIONS: list[Migration] = [] -# Below this many chunks, LanceDB's exact (brute-force) search is sufficient and -# faster than building an ANN index (per LanceDB guidance, ~100K vectors). +# Below this many chunks, brute-force exact search is fast enough that building +# an ANN index is not worth the overhead. ANN_INDEX_MIN_ROWS = 100_000 # IVF_PQ default; num_sub_vectors must evenly divide the embedding dimension. ANN_PQ_SUB_VECTORS = 96