milvus-io / milvus-tools

A data migration tool for Milvus.
Apache License 2.0
68 stars 21 forks source link

The type of go_benchmark response is not json: panic: nprobe not valid #51

Open TaQuangTu opened 1 year ago

TaQuangTu commented 1 year ago

How to pass search param of inv_flat index type exactly with your benchmark code, assume that I have successfully create INV_FLAT index on the dataset. Passing

search_parameters = {
        "anns_field": anns_field,
        "metric_type": metric_type,
        "param": {
            "nprobe": 32,
        },
        "limit": topk,
        "expression": expression,
    }

gives error:

Traceback (most recent call last):
  File "go_benchmark.py", line 167, in <module>
    go_search(go_benchmark=go_benchmark, uri=uri, user=user, password=password, collection_name=collection_name,
  File "go_benchmark.py", line 113, in go_search
    raise ValueError(msg)
ValueError: The type of go_benchmark response is not json: panic: nprobe not valid

Appreciate you helps. Thanks.

optimus-kart commented 1 year ago

facing the same issue, does the with ivf_sq8, is there any solution to this?

optimus-kart commented 1 year ago

if the source code is available for benchmark, I can give a shot at fixing it