From 08e532eaf3dc246d03c853c7a4e4f28a621b2472 Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 8 May 2025 03:26:14 +0800 Subject: [PATCH] Remove unused text_chunks_db param from naive_query --- lightrag/lightrag.py | 1 - lightrag/operate.py | 1 - 2 files changed, 2 deletions(-) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index 2145fcb1..26a90539 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -1456,7 +1456,6 @@ class LightRAG: response = await naive_query( query.strip(), self.chunks_vdb, - self.text_chunks, param, global_config, hashing_kv=self.llm_response_cache, diff --git a/lightrag/operate.py b/lightrag/operate.py index 08296bdb..0ca3747c 100644 --- a/lightrag/operate.py +++ b/lightrag/operate.py @@ -1861,7 +1861,6 @@ async def _find_related_text_unit_from_relationships( async def naive_query( query: str, chunks_vdb: BaseVectorStorage, - text_chunks_db: BaseKVStorage, query_param: QueryParam, global_config: dict[str, str], hashing_kv: BaseKVStorage | None = None,