Skip to content

Commit f967e77

Browse files
Gaudy BlancoGaudy Blanco
authored andcommitted
validate cosmosdb
1 parent c5d8599 commit f967e77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphrag/config/models/vector_store_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def _validate_embeddings_schema(self) -> None:
9797
raise ValueError(msg)
9898

9999
if self.type == VectorStoreType.CosmosDB:
100-
for id_field in self.embeddings_schema.values():
101-
if id_field.id_field != "id":
100+
for id_field in self.embeddings_schema:
101+
if id_field != "id":
102102
msg = "When using CosmosDB, the id_field in embeddings_schema must be 'id'. Please rerun `graphrag init` and set the id_field to 'id'."
103103
raise ValueError(msg)
104104

0 commit comments

Comments
 (0)