From e208c49d679f1af9811a770efb71e573ddcba872 Mon Sep 17 00:00:00 2001 From: Arsen Ohanyan Date: Mon, 16 Feb 2026 16:43:07 -0800 Subject: [PATCH] fix: skip Path.resolve() for cloud storage db_uri in vector store config --- .../graphrag/graphrag/config/models/graph_rag_config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/graphrag/graphrag/config/models/graph_rag_config.py b/packages/graphrag/graphrag/config/models/graph_rag_config.py index dc28da97ca..5e0d42b97a 100644 --- a/packages/graphrag/graphrag/config/models/graph_rag_config.py +++ b/packages/graphrag/graphrag/config/models/graph_rag_config.py @@ -268,9 +268,11 @@ def _validate_vector_store_db_uri(self) -> None: """Validate the vector store configuration.""" store = self.vector_store if store.type == VectorStoreType.LanceDB: - if not store.db_uri or store.db_uri.strip == "": + if not store.db_uri or store.db_uri.strip() == "": store.db_uri = graphrag_config_defaults.vector_store.db_uri - store.db_uri = str(Path(store.db_uri).resolve()) + # Don't resolve cloud storage URIs as local paths + if not store.db_uri.startswith(("gs://", "s3://", "az://", "abfs://")): + store.db_uri = str(Path(store.db_uri).resolve()) def get_completion_model_config(self, model_id: str) -> ModelConfig: """Get a completion model configuration by ID.