How to Add a File to Vector Store Collection
-
by Blog Admin
- 5
How to Add a File to Vector Store Collection
Upload and manage files within your collection to organize and share resources with your team.
A collection file is a document that can be uploaded to a vector store collection, allowing you to batch-import structured data efficiently. Instead of adding individual items manually, collection files provide a way to store and manage multiple data points in a single upload.
Follow this guide to add a file to a vector store collection on Vultr Serverless Inference using the Vultr API.
- Send a
GETrequest 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}"
- Send a
POSTrequest to the Add Collection File endpoint to add a file to the target vector store collection.console$ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}/files" \ -X POST \ -H "Authorization: Bearer ${INFERENCE_API_KEY}" \ -H "Content-Type: multipart/form-data" \ -F "file=@{path-to-your-file}"
- Send a
GETrequest to the List Collection Files endpoint to list all files in the vector store collection.console$ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}/files" \ -X GET \ -H "Authorization: Bearer ${INFERENCE_API_KEY}"
How to Add a File to Vector Store Collection Upload and manage files within your collection to organize and share resources with your team. A collection file is a document that can be uploaded to a vector store collection, allowing you to batch-import structured data efficiently. Instead of adding individual…
How to Add a File to Vector Store Collection Upload and manage files within your collection to organize and share resources with your team. A collection file is a document that can be uploaded to a vector store collection, allowing you to batch-import structured data efficiently. Instead of adding individual…