From 3a88ab3426640e30cb949d39f955822d1e701ded Mon Sep 17 00:00:00 2001 From: Gijs Segerink Date: Thu, 19 Dec 2024 13:51:37 +0100 Subject: [PATCH] Update factory.py Second PR for issue #1538 --- graphrag/cache/factory.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/graphrag/cache/factory.py b/graphrag/cache/factory.py index 90f91a73b6..e8119ffe28 100644 --- a/graphrag/cache/factory.py +++ b/graphrag/cache/factory.py @@ -49,7 +49,13 @@ def create_cache( FilePipelineStorage(root_dir=root_dir).child(kwargs["base_dir"]) ) case CacheType.blob: - return JsonPipelineCache(BlobPipelineStorage(**kwargs)) + return JsonPipelineCache( + BlobPipelineStorage( + connection_string=kwargs['connection_string'], + container_name=kwargs['container_name'], + storage_account_blob_url=kwargs['storage_account_blob_url'] + ).child(kwargs["base_dir"]) + ) case _: if cache_type in cls.cache_types: return cls.cache_types[cache_type](**kwargs)