How to Manage Vector Store Collections

Updated on March 11, 2025

Managing vector store collections helps to keep your data organized and accessible. You can retrieve collection details, update collection names, or delete collections when they are no longer needed.

Follow this guide to manage vector store collections on Vultr Serverless Inference using the Vultr API.

  1. Send a GET request to the List Collections endpoint and note the target collection's ID.

    console
    $ curl "https://api.vultrinference.com/v1/vector_store" \
        -X GET \
        -H "Authorization: Bearer ${INFERENCE_API_KEY}"
    
  2. Send a GET request to the Collection endpoint to retrieve target collection details.

    console
    $ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}" \
        -X GET \
        -H "Authorization: Bearer ${INFERENCE_API_KEY}"
    
  3. Send a PATCH request to the Update Collection endpoint to update a vector store collection record.

    console
    $ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}" \
        -X PATCH \
        -H "Authorization: Bearer ${INFERENCE_API_KEY}" \
        -H "Content-Type: application/json" \
        --data '{
            "name": "{updated-collection-name}"
        }'
    
  4. Send a DELETE request to the Delete Collection endpoint to delete the target vector store collection.

    console
    $ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}" \
        -X DELETE \
        -H "Authorization: Bearer ${INFERENCE_API_KEY}"
    

Comments

No comments yet.