Skip to content

how does the VectorDBBench support self-built ElasticSearch #758

@hellogitee

Description

@hellogitee

使用VectorDBBench 安装完pip install vectordb-bench[elastic] 后,没有发现elastic的支持选项

elasticcloudhnsw
elasticcloudhnswbbq
elasticcloudhnswint4
elasticcloudhnswint8
这些都需要cloud_id。

使用tencentelasticsearch选项时,报elasticsearch.BadRequestError: BadRequestError(400, 'None')

./vectordbbench tencentelasticsearch --scheme http --host rw-xxxxx.xxxx.xxx --port 9204 --user elastic --password 'password' --num-concurrency 1,5,10,20,30,40,60,80,100,120,150,180,200,250,300 --m 16 --ef_construction 200 --k 10 --case-type Performance768D1M

File "/usr/local/python11/lib/python3.11/site-packages/vectordb_bench/interface.py", line 182, in _async_task_v2
case_res.metrics = runner.run(drop_old)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python11/lib/python3.11/site-packages/vectordb_bench/backend/task_runner.py", line 145, in run
self._pre_run(drop_old)
File "/usr/local/python11/lib/python3.11/site-packages/vectordb_bench/backend/task_runner.py", line 136, in _pre_run
self.init_db(drop_old)
File "/usr/local/python11/lib/python3.11/site-packages/vectordb_bench/backend/task_runner.py", line 125, in init_db
self.db = db_cls(
^^^^^^^
File "/usr/local/python11/lib/python3.11/site-packages/vectordb_bench/backend/clients/elastic_cloud/elastic_cloud.py", line 57, in init
is_existed_res = client.indices.exists(index=self.indice)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python11/lib/python3.11/site-packages/elasticsearch/_sync/client/utils.py", line 415, in wrapped
return api(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python11/lib/python3.11/site-packages/elasticsearch/_sync/client/indices.py", line 1594, in exists
return self.perform_request( # type: ignore[return-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python11/lib/python3.11/site-packages/elasticsearch/_sync/client/_base.py", line 422, in perform_request
return self._client.perform_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python11/lib/python3.11/site-packages/elasticsearch/_sync/client/_base.py", line 271, in perform_request
response = self._perform_request(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python11/lib/python3.11/site-packages/elasticsearch/_sync/client/_base.py", line 351, in _perform_request
raise HTTP_EXCEPTIONS.get(meta.status, ApiError)(
elasticsearch.BadRequestError: BadRequestError(400, 'None')

密码是对的
Image

vectordbbench版本为1.0.20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions