Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: IndexParams type required by create_index() but not exposed in public API #2311

Open
1 task done
nvonpentz opened this issue Oct 25, 2024 · 0 comments
Open
1 task done
Labels
kind/bug Something isn't working

Comments

@nvonpentz
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The MilvusClient.create_index() method expects an IndexParams type, but this type isn't exposed in the public API.

The create_index signature requires it.

    def create_index(
        self,
        collection_name: str,
        index_params: IndexParams,
        timeout: Optional[float] = None,
        **kwargs,
    ):

But I can't import this type.

>>> from pymilvus import IndexParams
ImportError: cannot import name 'IndexParams' from 'pymilvus'
>>> from pymilvus.index import IndexParams  
ModuleNotFoundError: No module named 'pymilvus.index'

Expected Behavior

No response

Steps/Code To Reproduce behavior

No response

Environment details

No response

Anything else?

No response

@nvonpentz nvonpentz added the kind/bug Something isn't working label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant