File size: 384 Bytes
42da79c
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from qdrant_client import QdrantClient
import os

# Connect to Qdrant
client = QdrantClient(host="localhost", port=6333)

# List all collections
collections = client.get_collections()
print("Available Collections:", collections)

# Count indexed documents
collection_name = "documents"  # Change if needed
info = client.get_collection(collection_name)
print("Collection Info:", info)