milvus-io / milvus-sdk-go

Go SDK for Milvus.
Apache License 2.0
326 stars 105 forks source link

[Bug]: Need update index type list #686

Open cydrain opened 5 months ago

cydrain commented 5 months ago

Is there an existing issue for this?

Current Behavior

index type list and metric type list are out-of-date, need update

// Index Constants
const (
    Flat       IndexType = "FLAT" //faiss
    BinFlat    IndexType = "BIN_FLAT"
    IvfFlat    IndexType = "IVF_FLAT" //faiss
    BinIvfFlat IndexType = "BIN_IVF_FLAT"
    IvfPQ      IndexType = "IVF_PQ" //faiss
    IvfSQ8     IndexType = "IVF_SQ8"
    HNSW       IndexType = "HNSW"
    IvfHNSW    IndexType = "IVF_HNSW"
    AUTOINDEX  IndexType = "AUTOINDEX"
    DISKANN    IndexType = "DISKANN"
    SCANN      IndexType = "SCANN"

    GPUIvfFlat IndexType = "GPU_IVF_FLAT"
    GPUIvfPQ   IndexType = "GPU_IVF_PQ"

    GPUCagra      IndexType = "GPU_CAGRA"
    GPUBruteForce IndexType = "GPU_BRUTE_FORCE"

    Scalar IndexType = "SCALAR"
)

Expected Behavior

please sync index type list with python SDK https://github.com/milvus-io/pymilvus/blob/master/pymilvus/client/utils.py

Steps To Reproduce

No response

Environment

No response

Anything else?

No response

cydrain commented 5 months ago

/assign @congqixia