mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-06-06 21:59:46 +00:00
17755a2c58
- Rename vector_store_file_exists -> llm_index_exists (accurate now) - Rename _iter_existing_modified -> _stored_modified_times; project away vector column (cheap scan) and return dict[doc_id, modified_str] directly - Drop _index_lock_path() indirection; inline settings.LLM_INDEX_LOCK - Move LLM_INDEX_LOCK alongside the index dir (drop_table is safe; no rmtree) - Drop current_embedding_dim() redirect; callers use get_embedding_dim() - Drop lazy-import explanatory comments (constraint lives in CLAUDE.md) - Batch embedding calls via get_text_embedding_batch() in all three loops - get_nodes: raise NotImplementedError for node_ids (was silently ignored) - has_nodes(): cheap limit(1) existence check; chat.py uses it instead of get_nodes() which materialized all matching rows - conftest: use mocker fixture (pytest-mock) instead of bare patch; add LLM_INDEX_LOCK to temp_llm_index_dir override; type-annotate mock_embed_model Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>