chore: fix wrong VectorType match case (#8857)

This commit is contained in:
ice yao
2024-09-28 10:54:04 +08:00
committed by GitHub
parent 55e6123db9
commit 27e33fb15c
2 changed files with 3 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ class TencentVector(BaseVector):
return self._client.create_database(database_name=self._client_config.database)
def get_type(self) -> str:
return "tencent"
return VectorType.TENCENT
def to_index_struct(self) -> dict:
return {"type": self.get_type(), "vector_store": {"class_prefix": self._collection_name}}