Merge pull request #479 from theClassLight/GG/pr
fix(llm): hashing_kv初始化修复
This commit is contained in:
commit
874f3b392b
1 changed files with 6 additions and 0 deletions
|
|
@ -256,7 +256,9 @@ class LightRAG:
|
||||||
if self.llm_response_cache
|
if self.llm_response_cache
|
||||||
and hasattr(self.llm_response_cache, "global_config")
|
and hasattr(self.llm_response_cache, "global_config")
|
||||||
else self.key_string_value_json_storage_cls(
|
else self.key_string_value_json_storage_cls(
|
||||||
|
namespace="llm_response_cache",
|
||||||
global_config=asdict(self),
|
global_config=asdict(self),
|
||||||
|
embedding_func=None,
|
||||||
),
|
),
|
||||||
**self.llm_model_kwargs,
|
**self.llm_model_kwargs,
|
||||||
)
|
)
|
||||||
|
|
@ -524,7 +526,9 @@ class LightRAG:
|
||||||
if self.llm_response_cache
|
if self.llm_response_cache
|
||||||
and hasattr(self.llm_response_cache, "global_config")
|
and hasattr(self.llm_response_cache, "global_config")
|
||||||
else self.key_string_value_json_storage_cls(
|
else self.key_string_value_json_storage_cls(
|
||||||
|
namespace="llm_response_cache",
|
||||||
global_config=asdict(self),
|
global_config=asdict(self),
|
||||||
|
embedding_func=None,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
elif param.mode == "naive":
|
elif param.mode == "naive":
|
||||||
|
|
@ -538,7 +542,9 @@ class LightRAG:
|
||||||
if self.llm_response_cache
|
if self.llm_response_cache
|
||||||
and hasattr(self.llm_response_cache, "global_config")
|
and hasattr(self.llm_response_cache, "global_config")
|
||||||
else self.key_string_value_json_storage_cls(
|
else self.key_string_value_json_storage_cls(
|
||||||
|
namespace="llm_response_cache",
|
||||||
global_config=asdict(self),
|
global_config=asdict(self),
|
||||||
|
embedding_func=None,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue