Skip to content

Wrong parameter for calling creating MilvusClient #384

@datagetabstract

Description

@datagetabstract

From the file:
https://github.com/nlweb-ai/NLWeb/blob/main/code/python/retrieval_providers/milvus_client.py

Line 95:
self._milvus_clients[client_key] = MilvusClient(self.uri, self.token)

Bug: wrong order of token parameter in MilvusClient()

Milvus's SDK documentation:
MilvusClient(
uri: str,
user: str,
password: str,
db_name: str,
token: str,
timeout=None,
**kwargs
)

Bug fix:
MilvusClient(uri=self.uri, token=self.token)

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