Migrate some code snippets

create-collection/simple
query-points/with-acorn
This commit is contained in:
xzfc
2025-11-26 06:23:31 +00:00
parent 2822fe9043
commit 43aab46bba
27 changed files with 254 additions and 9 deletions
@@ -0,0 +1,8 @@
from qdrant_client import QdrantClient, models
client = QdrantClient(url="http://localhost:6333")
client.create_collection(
collection_name="{collection_name}",
vectors_config=models.VectorParams(size=100, distance=models.Distance.COSINE),
)