fixed lint
This commit is contained in:
parent
2ba3447a56
commit
3c9908b94a
1 changed files with 9 additions and 2 deletions
|
|
@ -539,9 +539,16 @@ class LightRAG:
|
||||||
split_by_character, split_by_character_only
|
split_by_character, split_by_character_only
|
||||||
)
|
)
|
||||||
|
|
||||||
def insert_custom_chunks(self, full_text: str, text_chunks: list[str], doc_id: str | list[str] | None = None) -> None:
|
def insert_custom_chunks(
|
||||||
|
self,
|
||||||
|
full_text: str,
|
||||||
|
text_chunks: list[str],
|
||||||
|
doc_id: str | list[str] | None = None,
|
||||||
|
) -> None:
|
||||||
loop = always_get_an_event_loop()
|
loop = always_get_an_event_loop()
|
||||||
loop.run_until_complete(self.ainsert_custom_chunks(full_text, text_chunks, doc_id))
|
loop.run_until_complete(
|
||||||
|
self.ainsert_custom_chunks(full_text, text_chunks, doc_id)
|
||||||
|
)
|
||||||
|
|
||||||
async def ainsert_custom_chunks(
|
async def ainsert_custom_chunks(
|
||||||
self, full_text: str, text_chunks: list[str], doc_id: str | None = None
|
self, full_text: str, text_chunks: list[str], doc_id: str | None = None
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue