Skip to content

Commit a6a4b22

Browse files
committed
refactor(core): remove redundant sqlite vector cleanup override
Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 3a5371a commit a6a4b22

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/basic_memory/repository/sqlite_search_repository.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -565,21 +565,6 @@ async def _delete_stale_chunks(
565565
stale_params,
566566
)
567567

568-
async def delete_entity_vector_rows(self, entity_id: int) -> None:
569-
"""Delete one entity's vec rows on a sqlite-vec-enabled connection."""
570-
await self._ensure_vector_tables()
571-
572-
async with db.scoped_session(self.session_maker) as session:
573-
await self._ensure_sqlite_vec_loaded(session)
574-
575-
# Constraint: sqlite-vec virtual tables are only visible after vec0 is
576-
# loaded on this exact connection.
577-
# Why: generic repository sessions can reach search_vector_chunks but still
578-
# fail with "no such module: vec0" when touching embeddings.
579-
# Outcome: service-level cleanup routes vec-table deletes through this helper.
580-
await self._delete_entity_chunks(session, entity_id)
581-
await session.commit()
582-
583568
async def delete_project_vector_rows(self) -> None:
584569
"""Delete all vector rows for this project on a sqlite-vec-enabled connection."""
585570
await self._ensure_vector_tables()

0 commit comments

Comments
 (0)