mirror of
https://github.com/langgenius/dify.git
synced 2026-08-28 21:23:22 +08:00
fix: improve error logging for vector search operation in MyScale (#25087)
This commit is contained in:
parent
c7700ac176
commit
ff7a0e3170
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user