Skip to content

Commit

Permalink
Merge pull request #479 from theClassLight/GG/pr
Browse files Browse the repository at this point in the history
fix(llm): hashing_kv初始化修复
  • Loading branch information
LarFii authored Dec 17, 2024
2 parents c840a05 + 86ef375 commit 874f3b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lightrag/lightrag.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ def __post_init__(self):
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,
)
Expand Down Expand Up @@ -524,7 +526,9 @@ async def aquery(self, query: str, param: QueryParam = QueryParam()):
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":
Expand All @@ -538,7 +542,9 @@ async def aquery(self, query: str, param: QueryParam = QueryParam()):
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:
Expand Down

0 comments on commit 874f3b3

Please sign in to comment.