Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fengjial committed Mar 13, 2024
1 parent a0a41ff commit 737cc84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions appbuilder/core/components/retriever/baiduvdb_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
FIELD_METADATA: str = "metadata"
INDEX_VECTOR: str = "vector_idx"

VALUE_NONE_ERROR = "Parameter `{}` can not be None."
NOT_SUPPORT_INDEX_TYPE_ERROR = (
"Unsupported index type: `{}`, supported index types are {}"
)
NOT_SUPPORT_METRIC_TYPE_ERROR = (
"Unsupported metric type: `{}`, supported metric types are {}"
)

def _try_import() -> None:
try:
import pymochow
Expand Down

0 comments on commit 737cc84

Please sign in to comment.