fix(core): load sqlite-vec before vector table cleanup - #852
Conversation
Signed-off-by: Drew Cain <groksrc@gmail.com>
141fe85 to
70ec34c
Compare
|
Claude finished @groksrc's task in 1m 41s —— View job PR Review: fix(core): load sqlite-vec before vector table cleanup
SummaryThis PR correctly fixes issue #829 — Code Quality & Standards
Testing & Documentation
Basic Memory Architecture
Design note: The Security & Performance
CompatibilityFindingsFinding 1 — Pre-existing / minor: redundant local
Overall AssessmentApprove. The fix is correct, minimal, and well-targeted. The core issue (sqlite-vec not loaded before |

Summary
Fixes #829.
sqlite-vecbefore touching avec0virtual table.SearchService.reindex_all()through that vec-aware helper for SQLite while preserving the existing Postgres path.Validation
BASIC_MEMORY_ENV=test uv run pytest -p pytest_mock -v --no-cov tests/services/test_semantic_search.pyuv run ruff check --fix --unsafe-fixes src/basic_memory/repository/sqlite_search_repository.py src/basic_memory/services/search_service.py tests/services/test_semantic_search.pyuv run ruff format src/basic_memory/repository/sqlite_search_repository.py src/basic_memory/services/search_service.py tests/services/test_semantic_search.pygit diff --check