How to Add an Item to Vector Store Collection
-
by Blog Admin
- 5
How to Add an Item to Vector Store Collection
A feature that allows you to add new resources to an organized group of related Vultr services or products.
A collection item is a data point within a vector store collection, containing a unique identifier, associated metadata, and a vector representation (embedding) of the content. These embeddings capture the semantic meaning of the data, enabling fast and relevant retrieval that enhances tasks such as information generation and decision-making.
Follow this guide to add an item 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 Item endpoint to add an item to the target vector store collection.console$ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}/items" \ -X POST \ -H "Authorization: Bearer ${INFERENCE_API_KEY}" \ -H "Content-Type: application/json" \ --data '{ "content": "{text-to-be-embedded}", "description": "{brief-description-of-content}" }'
- Send a
GETrequest to the List Collection Items endpoint to list all items in the vector store collection.console$ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}/items" \ -X GET \ -H "Authorization: Bearer ${INFERENCE_API_KEY}"
How to Add an Item to Vector Store Collection A feature that allows you to add new resources to an organized group of related Vultr services or products. A collection item is a data point within a vector store collection, containing a unique identifier, associated metadata, and a vector representation…
How to Add an Item to Vector Store Collection A feature that allows you to add new resources to an organized group of related Vultr services or products. A collection item is a data point within a vector store collection, containing a unique identifier, associated metadata, and a vector representation…