How to change nbits for IVFPQ #3909
-
Milvus CPU: v0.10.3 ( Built from Source ). I want to change nbits for the IVFPQ CPU version from nbits = 8 to nbits = 4 or nbits = 2. However, I am not able to do that with Milvus. Here is the trace of my activity. I create an index on an empty collection with the following parameters
I see the status of the index creation as
After this, I inserted 5 million vectors into the collection and saw that the row count is 0. It seems that Milvus does not recognize nbits as a parameter, hence even though there is a message of 'Build Index Successfully" no index is actually built. Please suggest what should I do to change nbits for IVFPQ. Suggestion: It seems that you can create an index by passing any string as a parameter and instead of throwing an error, Milvus proceeds with the index creation. It will be better to throw an error to let the user know that a wrong parameter has been passed ( You can recreate this by passing "random" with value set to 1 to IVFPQ and see that the Index is created ). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In fact, IVFPQ does not support modifying the Regarding the insertion failure, please refer to examp.py to check if there is a problem with the data format. |
Beta Was this translation helpful? Give feedback.
In fact, IVFPQ does not support modifying the
nbits
parameter, please refer to the vector index for the specific parameters of PQ.Regarding the insertion failure, please refer to examp.py to check if there is a problem with the data format.