File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
src/basic_memory/repository Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments