Skip to content

[Bug]: IndexParams overridden as list #3001

@sapphire008

Description

@sapphire008

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

from pymilvus.milvus_client.index import IndexParams

IndexParams(field_name="embedding")

throws the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/miniconda3/envs/people_app_scene_embedding_pipeline/lib/python3.12/site-packages/pymilvus/milvus_client/index.py", line 86, in __init__
    super().__init__(*args, **kwargs)
TypeError: list() takes no keyword arguments

Expected Behavior

Expecting this constructs IndexParams correctly as before (2.5.6), but throwing the above error in the latest version.

Steps/Code To Reproduce behavior

from pymilvus.milvus_client.index import IndexParams
IndexParams(field_name="embedding")

Environment details

- Hardware/Softward conditions (OS, CPU, GPU, Memory): OSX python 3.12.9
- Method of installation (Docker, or from source): pip
- Milvus version (v0.3.1, or v0.4.0): 2.6.2
- Milvus configuration (Settings you made in `server_config.yaml`):

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions