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

Throw error message when trying to update vector index type configuration in a collection #1277

Open
rthiiyer82 opened this issue Sep 4, 2024 · 0 comments

Comments

@rthiiyer82
Copy link

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).

@rthiiyer82 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants