Find answers from the community

Updated 8 months ago

first time trying to work with Milvus as

first time trying to work with Milvus as a vectorDB and LlamaIndex, getting this odd exception when running query_engine.query
Plain Text
pymilvus.exceptions.MilvusException: <MilvusException: (code=0, message=metric_type not found in search_params)>

I'm not entirely sure if the defaults are not set for Milvus so I set the search_params with instantiating the MilvusVectorStore but I don't think it's using it or something. Anyone ever run into this?
L
d
8 comments
I think I finally got some success out of this:
Plain Text
# construct vector store
vector_store = MilvusVectorStore(
    uri="http://localhost:19530",
    search_config={"metric_type": "IP"},
)
for whatever reason the vector store does not have any defaults and, it uses search_config instead of the documented search_params
Very weird -- maybe make a PR if you have time haha
I had saw an issue logged about no defaults, and the bot said it was stale and closed it with the solution of "don't use default" or whatnot πŸ™‚
ha the bot might close stale issues automatically, even if its still an issue (OP just never responded Im guessing)
If it didn't do that, there would be 10,000 issues πŸ˜† Gotta keep it fresh at least
I'm a much bigger fan of the WONTFIX state πŸ™‚ But, having managed many developers I understand the "head in the ground, I can't hear you" state too πŸ™‚
Add a reply
Sign up and join the conversation on Discord