Update json_kv_impl.py
There is no delete function in chunks_vdb and text_chunks in lines 1300-1302 of the lightrag.py file:
if chunk_ids:
await self.chunks_vdb.delete(chunk_ids)
await self.text_chunks.delete(chunk_ids)
This commit is contained in:
parent
4d58ff8bb4
commit
edaba428ac
1 changed files with 5 additions and 0 deletions
|
|
@ -47,3 +47,8 @@ class JsonKVStorage(BaseKVStorage):
|
|||
|
||||
async def drop(self) -> None:
|
||||
self._data = {}
|
||||
|
||||
async def delete(self, ids: list[str]) -> None:
|
||||
for doc_id in ids:
|
||||
self._data.pop(doc_id, None)
|
||||
await self.index_done_callback()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue