Created
          October 4, 2022 14:07 
        
      - 
      
 - 
        
Save kacperlukawski/3ade04b61364f13340216120f0f87651 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from qdrant_client import QdrantClient | |
| from qdrant_client.http.models import VectorParams, Distance | |
| client = QdrantClient(timeout=None) | |
| client.recreate_collection( | |
| collection_name="ms-coco-2017", | |
| vectors_config={ | |
| "text": VectorParams( | |
| size=384, | |
| distance=Distance.EUCLID, | |
| ), | |
| "image": VectorParams( | |
| size=1000, | |
| distance=Distance.COSINE, | |
| ), | |
| }, | |
| ) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment