Skip to content

Commit 736c2a2

Browse files
author
ianrob
committed
Update to support latest version of opensearch-py
1 parent 7323784 commit 736c2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lexical-graph/src/graphrag_toolkit/lexical_graph/storage/vector/opensearch_vector_indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def index_exists(endpoint, index_name, dimensions, writeable) -> bool:
283283
index_exists = False
284284

285285
try:
286-
index_exists = client.indices.exists(index_name)
286+
index_exists = client.indices.exists(index=index_name)
287287
if not index_exists and writeable:
288288
logger.debug(f'Creating OpenSearch index [index_name: {index_name}, endpoint: {endpoint}]')
289289
client.indices.create(index=index_name, body=idx_conf)

0 commit comments

Comments
 (0)