diff --git a/graphrag/config/models/graph_rag_config.py b/graphrag/config/models/graph_rag_config.py index cac321f01b..3882d31e57 100644 --- a/graphrag/config/models/graph_rag_config.py +++ b/graphrag/config/models/graph_rag_config.py @@ -295,7 +295,7 @@ def _validate_vector_store_db_uri(self) -> None: """Validate the vector store configuration.""" for store in self.vector_store.values(): 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() == "": msg = "Vector store URI is required for LanceDB. Please rerun `graphrag init` and set the vector store configuration." raise ValueError(msg) store.db_uri = str((Path(self.root_dir) / store.db_uri).resolve())