fix(opensearch): return [[]] from list() error path to honor list() contract (#5727)

This commit is contained in:
Bartok
2026-06-22 11:58:37 +05:30
committed by GitHub
parent bd5996f41e
commit 42fe129330
2 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -371,7 +371,7 @@ class OpenSearchDB(VectorStoreBase):
return [results] # VectorStore expects tuple/list format
except Exception as e:
logger.error(f"Error listing vectors: {e}", exc_info=True)
return []
return [[]]
def reset(self):
"""Reset the index by deleting and recreating it."""