File size: 682 Bytes
e785be9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

from qdrant_client import QdrantClient

try:
    client = QdrantClient(path="qdrant_storage")
    print("✅ Client initialized.")
    if client.get_collection("faces"):
        print("✅ Collection 'faces' exists.")
        
        # Test query_points
        try:
             # Dummy vector 512 dim
             dummy = [0.1] * 512
             res = client.query_points(collection_name="faces", query=dummy, limit=1)
             print(f"✅ query_points success. Result type: {type(res)}")
             print(f"Result: {res}")
        except Exception as e:
            print(f"❌ query_points failed: {e}")
            
except Exception as e:
    print(f"❌ Error: {e}")