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.
Send a GET
request to the List Collections endpoint and note the target collection's ID.
$ curl "https://api.vultrinference.com/v1/vector_store" \
-X GET \
-H "Authorization: Bearer ${INFERENCE_API_KEY}"
Send a GET
request to the Collection endpoint to retrieve target collection details.
$ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}" \
-X GET \
-H "Authorization: Bearer ${INFERENCE_API_KEY}"
Send a PATCH
request to the Update Collection endpoint to update a vector store collection record.
$ 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}"
}'
Send a DELETE
request to the Delete Collection endpoint to delete the target vector store collection.
$ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}" \
-X DELETE \
-H "Authorization: Bearer ${INFERENCE_API_KEY}"
No comments yet.