feat: support opensearch approximate k-NN (#5322)

This commit is contained in:
baojingyu 2024-06-19 12:44:33 +08:00 • committed by GitHub
commit d160d1ed02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 793 additions and 4 deletions

View file

@ -503,7 +503,7 @@ class DatasetRetrievalSettingApi(Resource):
'semantic_search'
]
}
case VectorType.QDRANT | VectorType.WEAVIATE:
case VectorType.QDRANT | VectorType.WEAVIATE | VectorType.OPENSEARCH:
return {
'retrieval_method': [
'semantic_search', 'full_text_search', 'hybrid_search'
@ -525,7 +525,7 @@ class DatasetRetrievalSettingMockApi(Resource):
'semantic_search'
]
}
case VectorType.QDRANT | VectorType.WEAVIATE:
case VectorType.QDRANT | VectorType.WEAVIATE | VectorType.OPENSEARCH:
return {
'retrieval_method': [
'semantic_search', 'full_text_search', 'hybrid_search'