fix: improve error logging for vector search operation in MyScale (#25087)
This commit is contained in:
@@ -152,8 +152,8 @@ class MyScaleVector(BaseVector):
|
|||||||
)
|
)
|
||||||
for r in self._client.query(sql).named_results()
|
for r in self._client.query(sql).named_results()
|
||||||
]
|
]
|
||||||
except Exception as e:
|
except Exception:
|
||||||
logger.exception("\033[91m\033[1m%s\033[0m \033[95m%s\033[0m", type(e), str(e)) # noqa:TRY401
|
logger.exception("Vector search operation failed")
|
||||||
return []
|
return []
|
||||||
|
|
||||||
def delete(self) -> None:
|
def delete(self) -> None:
|
||||||
|
Reference in New Issue
Block a user