mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
test: add text embedding function restful api test (#42977)
/kind improvement Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
2d73e6eaa8
commit
8bda337f52
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,8 @@ def pytest_addoption(parser):
|
||||
parser.addoption("--bucket_name", action="store", default="milvus-bucket", help="minio bucket name")
|
||||
parser.addoption("--root_path", action="store", default="file", help="minio bucket root path")
|
||||
parser.addoption("--release_name", action="store", default="my-release", help="release name")
|
||||
|
||||
# a tei endpoint for text embedding, default is http://text-embeddings-service.milvus-ci.svc.cluster.local:80 which is deployed in house
|
||||
parser.addoption("--tei_endpoint", action="store", default="http://text-embeddings-service.milvus-ci.svc.cluster.local:80", help="tei endpoint")
|
||||
|
||||
@pytest.fixture
|
||||
def endpoint(request):
|
||||
@ -39,3 +40,7 @@ def root_path(request):
|
||||
@pytest.fixture
|
||||
def release_name(request):
|
||||
return request.config.getoption("--release_name")
|
||||
|
||||
@pytest.fixture
|
||||
def tei_endpoint(request):
|
||||
return request.config.getoption("--tei_endpoint")
|
||||
1035
tests/restful_client_v2/testcases/test_text_embedding_search.py
Normal file
1035
tests/restful_client_v2/testcases/test_text_embedding_search.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user