πŸ’»How to change the schema of a collection

How to change the schema of a collection

We can change the schema of a collection using the /project/copy_collection endpoint and fill in the value for the collection_schema argument.

import requests 
response = requests.post("https://vectorai-development-api.azurewebsites.net/project/copy_collection",
    json={
        "username": "string",
        "api_key": "string",
        "collection_name": "string",
        "original_collection_name": "string",
        "collection_schema": { "field_vecotr_": {"vector" : {"vector_length" : 256}} },
    })
response.json()

Last updated