Merge pull request #479 from theClassLight/GG/pr

fix(llm): hashing_kv初始化修复
This commit is contained in:
zrguo 2024-12-17 17:38:19 +08:00 committed by GitHub
commit 874f3b392b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -256,7 +256,9 @@ class LightRAG:
if self.llm_response_cache
and hasattr(self.llm_response_cache, "global_config")
else self.key_string_value_json_storage_cls(
namespace="llm_response_cache",
global_config=asdict(self),
embedding_func=None,
),
**self.llm_model_kwargs,
)
@ -524,7 +526,9 @@ class LightRAG:
if self.llm_response_cache
and hasattr(self.llm_response_cache, "global_config")
else self.key_string_value_json_storage_cls(
namespace="llm_response_cache",
global_config=asdict(self),
embedding_func=None,
),
)
elif param.mode == "naive":
@ -538,7 +542,9 @@ class LightRAG:
if self.llm_response_cache
and hasattr(self.llm_response_cache, "global_config")
else self.key_string_value_json_storage_cls(
namespace="llm_response_cache",
global_config=asdict(self),
embedding_func=None,
),
)
else: