chore: reuse existing test functions with upstash vdb (#9679)
This commit is contained in:
parent
d5a93a6400
commit
ceb2c4f3ef
3 changed files with 7 additions and 42 deletions
|
|
@ -619,6 +619,7 @@ class DatasetRetrievalSettingApi(Resource):
|
|||
| VectorType.PGVECTO_RS
|
||||
| VectorType.BAIDU
|
||||
| VectorType.VIKINGDB
|
||||
| VectorType.UPSTASH
|
||||
):
|
||||
return {"retrieval_method": [RetrievalMethod.SEMANTIC_SEARCH.value]}
|
||||
case (
|
||||
|
|
@ -630,7 +631,6 @@ class DatasetRetrievalSettingApi(Resource):
|
|||
| VectorType.ORACLE
|
||||
| VectorType.ELASTICSEARCH
|
||||
| VectorType.PGVECTOR
|
||||
| VectorType.UPSTASH
|
||||
):
|
||||
return {
|
||||
"retrieval_method": [
|
||||
|
|
@ -658,6 +658,7 @@ class DatasetRetrievalSettingMockApi(Resource):
|
|||
| VectorType.PGVECTO_RS
|
||||
| VectorType.BAIDU
|
||||
| VectorType.VIKINGDB
|
||||
| VectorType.UPSTASH
|
||||
):
|
||||
return {"retrieval_method": [RetrievalMethod.SEMANTIC_SEARCH.value]}
|
||||
case (
|
||||
|
|
@ -669,7 +670,6 @@ class DatasetRetrievalSettingMockApi(Resource):
|
|||
| VectorType.ORACLE
|
||||
| VectorType.ELASTICSEARCH
|
||||
| VectorType.PGVECTOR
|
||||
| VectorType.UPSTASH
|
||||
):
|
||||
return {
|
||||
"retrieval_method": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue