fix(opensearch): return [[]] from list() error path to honor list() contract (#5727)
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user