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

This commit is contained in:
baojingyu
2024-06-19 12:44:33 +08:00
committed by GitHub
parent a651e7e2da
commit d160d1ed02
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'