Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: nlist parameter does not take effect when create collection by restful api #36365

Open
1 task done
cnlkl opened this issue Sep 19, 2024 · 1 comment
Open
1 task done
Assignees
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@cnlkl
Copy link

cnlkl commented Sep 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: v2.4.5
- Deployment mode(standalone or cluster): standalone
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2): RESTful API
- OS(Ubuntu or CentOS): CentOS
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

When creating a Collection through the HTTP REST API and creating IVF_FLAT index at the same time, the nlist parameter does not take effect.

Expected Behavior

Success create collection and index with specify nlist

Steps To Reproduce

It can be reproduced by  using the example in the official documentation.


export MILVUS_URI="localhost:19530"

curl --location --request POST "http://${MILVUS_URI}/v2/vectordb/collections/create" \
--header "Content-Type: application/json" \
--data-raw '{
    "collectionName": "custom_setup_indexed",
    "schema": {
        "autoId": false,
        "enabledDynamicField": false,
        "fields": [
            {
                "fieldName": "my_id",
                "dataType": "Int64",
                "isPrimary": true
            },
            {
                "fieldName": "my_vector",
                "dataType": "FloatVector",
                "elementTypeParams": {
                    "dim": "5"
                }
            }
        ]
        
    },
    "indexParams": [
        {
            "fieldName": "my_vector",
            "metricType": "COSINE",
            "indexName": "my_vector",
            "params": {
                "index_type": "IVF_FLAT",
                "nlist": "1024"
            }
        },
        {
            "fieldName": "my_id",
            "indexName": "my_id",
            "params": {
                "index_type": "STL_SORT"
            }            
        }
    ]
}'


### Milvus Log

_No response_

### Anything else?

_No response_
@cnlkl cnlkl added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Sep 19, 2024
@cnlkl cnlkl changed the title [Bug]: Create Collection [Bug]: Create collection with index failed Sep 19, 2024
@cnlkl cnlkl changed the title [Bug]: Create collection with index failed [Bug]: Create collection with index, but nlist parameter not take effect Sep 19, 2024
@cnlkl cnlkl changed the title [Bug]: Create collection with index, but nlist parameter not take effect [Bug]: nlist parameter does not take effect when create collection by restful api Sep 19, 2024
@yanliang567
Copy link
Contributor

sounds like a known issue for now.
/assign @smellthemoon
/unassign

@yanliang567 yanliang567 removed the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Sep 20, 2024
@yanliang567 yanliang567 added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants