Skip to content

Instantly share code, notes, and snippets.

@dontpaniclabsgists
Created September 8, 2025 18:18
Show Gist options
  • Save dontpaniclabsgists/9ecb91f6e231741749ab3ad64876219d to your computer and use it in GitHub Desktop.
Save dontpaniclabsgists/9ecb91f6e231741749ab3ad64876219d to your computer and use it in GitHub Desktop.
# Qdrant collection setup for different embedding models
model_sizes = {
"VGG-Face": 4096,
"Facenet": 128,
"ArcFace": 512
}
def _ensure_collections_exist(self):
for model_name, vector_size in model_sizes.items():
collection_name = f"face_embeddings_{model_name.lower()}"
# Create collection with proper vector dimensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment