From 27b46571b47185b3a4de2bff91ad3e3f517a2a29 Mon Sep 17 00:00:00 2001 From: Sajid Ali Date: Tue, 27 Jan 2026 16:21:41 -0500 Subject: [PATCH] bugfix for lancedb uri parsing when using an object store --- .../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 1b753d58f..30f175b21 100644 --- a/packages/graphrag/graphrag/config/models/graph_rag_config.py +++ b/packages/graphrag/graphrag/config/models/graph_rag_config.py @@ -270,9 +270,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()) + # Only convert to a filesystem path if the URI is not for object store + if not store.db_uri.startswith(("az://", "s3://", "gs://")): + 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.