YACWC
This commit is contained in:
21
dump_qdrant.py
Normal file
21
dump_qdrant.py
Normal file
@@ -0,0 +1,21 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user