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

Qdrant local mode allows to upsert a vector not declared in a collection #811

Closed
joein opened this issue Oct 13, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@joein
Copy link
Member

joein commented Oct 13, 2024

from qdrant_client import QdrantClient, models

cl = QdrantClient(":memory:")
cl.create_collection(
    "cn", vectors_config={}, sparse_vectors_config={"text": models.SparseVectorParams()}
)
cl.upsert("cn", points=[models.PointStruct(id=1, vector=[0.2, 0.3])])
cl.upsert("cn", points=[models.PointStruct(id=2, vector=[0.2, 0.3, 0.4])])

Should raise a error similar to the remote mode

@joein joein added the bug Something isn't working label Oct 13, 2024
@joein
Copy link
Member Author

joein commented Oct 18, 2024

#813

@joein joein closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant