You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background: I have been running latency tests to compare results of hnsw, flat and dynamic vector indexes. While inserting objects I realised , I had incorrectly configured the collection to flat when I had to configure it to dynamic index. I tried to update the vector index config in the collection using the following python code. The script did not throw any error. However, the vector index did not update to dynamic . It continued showing flat index.
from weaviate.classes.config import Reconfigure
# Get the Article collection object
dynamicTestCollection = client.collections.get("Testingdynamicindexings")
# Update the collection configuration
dynamicTestCollection.config.update(
vectorizer_config= Reconfigure.VectorIndex.dynamic()
)
Actual result: The client did not throw error message stating that vector index cannot be updated from hnsw or flat or dynamic
Expected result: The client should throw an error. Vector index type cannot be changed by changing the config. The objects have be to fully reindex (unfortunately).
The text was updated successfully, but these errors were encountered:
rthiiyer82
changed the title
Throw error message when trying to update vector index configuration in a collection
Throw error message when trying to update vector index type configuration in a collection
Sep 4, 2024
Background: I have been running latency tests to compare results of hnsw, flat and dynamic vector indexes. While inserting objects I realised , I had incorrectly configured the collection to flat when I had to configure it to dynamic index. I tried to update the vector index config in the collection using the following python code. The script did not throw any error. However, the vector index did not update to dynamic . It continued showing flat index.
Actual result: The client did not throw error message stating that vector index cannot be updated from
hnsw
orflat
ordynamic
Expected result: The client should throw an error. Vector index type cannot be changed by changing the config. The objects have be to fully reindex (unfortunately).
The text was updated successfully, but these errors were encountered: