Skip to content

Commit

Permalink
Update lightrag.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LarFii authored Dec 26, 2024
1 parent a1493f5 commit 457e683
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lightrag/lightrag.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,12 @@ def __post_init__(self):
logger.info(f"Creating working directory {self.working_dir}")
os.makedirs(self.working_dir)

self.llm_response_cache = (
self.key_string_value_json_storage_cls(
namespace="llm_response_cache",
global_config=asdict(self),
embedding_func=None,
)
if self.enable_llm_cache
else None
self.llm_response_cache = self.key_string_value_json_storage_cls(
namespace="llm_response_cache",
global_config=asdict(self),
embedding_func=None,
)

self.embedding_func = limit_async_func_call(self.embedding_func_max_async)(
self.embedding_func
)
Expand Down

0 comments on commit 457e683

Please sign in to comment.