Skip to content

[Enhancement]: Type-Safety for Async Milvus Client #2991

@shubh3ai

Description

@shubh3ai

Is there an existing issue for this?

  • I have searched the existing issues

What would you like to be added?

The Async Milvus Client right now returns dict objects for all the API requests that it makes. This makes the code much harder to manage. For example, the documents on the official page are at times not in sync with the Python library. Or it makes the code harder to debug. ATM I have to go into the Go Source code for the milvus repo to make sure that the values that I'm looking for in the request body actually makes sense.

Adding Pydantic Datatypes or any other datatype to enforce a structure on the return responses will help with:

  1. easier to debug the code
  2. makes it easier to manage the pymilvus library itself

I'm willing to work on this issue and add type safety myself if the maintainers are onboard with the proposal.

Why is this needed?

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions