mem0ai / mem0

The Memory layer for your AI apps
https://mem0.ai
Apache License 2.0
22.33k stars 2.06k forks source link

Milvus throws an exception Bug #1911

Closed fenggaobj closed 1 week ago

fenggaobj commented 2 weeks ago

🐛 Describe the bug

In the code of mem0/vector_stores/milvus.py, index_type="AUTOINDEX" is specified. If AUTOINDEX is specified, only metric_type is allowed to be specified; no other parameters can be specified, otherwise pymilvus will throw an exception: pymilvus.exceptions.MilvusException: <MilvusException: (code=101, message=failed to search: collection not loaded[collection=452809638709711102])>

Therefore, the parameter params={"nlist": 128} in the create_col function needs to be removed.

ketangangal commented 2 weeks ago

Hi @fenggaobj, Thanks for pointing out. fixing it