Skip to content

opensearch-py client broken in latest release #611

@rishabh6788

Description

@rishabh6788

I installed latest version of vectordb-bench to run a benchmark against aws opensearch (version 2.19) and was facing below error when running ingestion:

2025-10-01 23:05:20,618 | WARNING: Failed to insert data: vdb_bench_index error: OpenSearch.bulk() takes 1 positional argument but 2 positional arguments (and 2 keyword-only arguments) were given

While debugging I noticed it was installing latest 3.0.0 version of opensearch-py client which seems to be broken when used against OpenSearch-2.x versions, after pinning the opensearch-py version to 2.8.0 the issue was fixed.

I would recommend to pin the opensearch-py version to 2.8.0 as it is compatible with OS-2x and 3.x versions.

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