mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-06-07 14:19:45 +00:00
f0d233631a
Spec for swapping the AI feature's llama-index FAISS StorageContext trio (FaissVectorStore + SimpleDocumentStore + SimpleIndexStore) for LanceDB via a custom BasePydanticVectorStore adapter (no llama-index-vector-stores-lancedb, no pandas). Covers: disk-resident memory-mapped storage, native merge_insert upsert with when_not_matched_by_source_delete, MetadataFilters(IN) filtering on a top-level document_id column, auto IVF ANN threshold (IVF_FLAT fallback), MVCC compaction via optimize(cleanup_older_than=...), migration, concurrency, and testing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>