22 lines
654 B
Python
22 lines
654 B
Python
from qdrant_client import QdrantClient
|
|
from qdrant_client.http import models
|
|
from qdrant_client.models import Distance, VectorParams
|
|
client = QdrantClient(host="localhost", port=6333)
|
|
|
|
|
|
collection_head = "nuggets_so400m"
|
|
out = client.scroll('nuggets_so400m',limit=10,with_vectors=True)
|
|
|
|
|
|
|
|
offset_id = None
|
|
#while True:
|
|
if True:
|
|
res = client.scroll(collection_name=collection_head,
|
|
limit=1000000,
|
|
offset=offset_id,
|
|
with_payload=False,
|
|
with_vectors=True);
|
|
|
|
# ou = np.asarray([x.vector for x in out[0]], dtype=np.float16)
|