Added OceanBase as an option for the vector store in Dify (#10010)

This commit is contained in:
powerfool 2024-10-29 21:10:18 +08:00 committed by GitHub
commit 878d13ef42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 427 additions and 2 deletions

View file

@ -628,6 +628,7 @@ class DatasetRetrievalSettingApi(Resource):
| VectorType.BAIDU
| VectorType.VIKINGDB
| VectorType.UPSTASH
| VectorType.OCEANBASE
):
return {"retrieval_method": [RetrievalMethod.SEMANTIC_SEARCH.value]}
case (
@ -669,6 +670,7 @@ class DatasetRetrievalSettingMockApi(Resource):
| VectorType.BAIDU
| VectorType.VIKINGDB
| VectorType.UPSTASH
| VectorType.OCEANBASE
):
return {"retrieval_method": [RetrievalMethod.SEMANTIC_SEARCH.value]}
case (