From bf0ddc645030b8aa22cd09828fc2d7341855f720 Mon Sep 17 00:00:00 2001 From: Abyl Ikhsanov Date: Sat, 1 Mar 2025 13:34:49 +0100 Subject: [PATCH] making optional for ainsert --- lightrag/lightrag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index b81ca08c..73747a91 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -839,7 +839,7 @@ class LightRAG: loop = always_get_an_event_loop() loop.run_until_complete(self.ainsert_custom_kg(custom_kg, full_doc_id)) - async def ainsert_custom_kg(self, custom_kg: dict[str, Any], full_doc_id: str | None) -> None: + async def ainsert_custom_kg(self, custom_kg: dict[str, Any], full_doc_id: str = None) -> None: update_storage = False try: # Insert chunks into vector storage