> For the complete documentation index, see [llms.txt](https://vanguard-embedding-solutions.gitbook.io/ves/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vanguard-embedding-solutions.gitbook.io/ves/vanguard-embedding-solutions-devs/databases.md).

# Databases

Database controller have endpoints to manipulate with your vector collections. It includes endpoints for load data to collection, delete data and send query to find

<mark style="color:green;">POST /load/{vectorCollectionId}</mark>

This endpoint loads data to collection. Response body must include the field “data” which must be a string array with data which you want to add to your collection.

Example request:

<figure><img src="https://3537456676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiaoXkFJNtgMxQ59XY87F%2Fuploads%2FL5NDRZslPJiJmKt4VLHr%2F%D0%B2%D0%B5%D1%81%2010.jpeg?alt=media&amp;token=42b36206-0fe4-4b70-9440-02f29943b32d" alt=""><figcaption></figcaption></figure>

<mark style="color:green;">DELETE /delete/{vectorCollectionId}</mark>

This endpoint can delete all data from the provided collection.

Example request:

<figure><img src="https://3537456676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiaoXkFJNtgMxQ59XY87F%2Fuploads%2Flr8ZIgtGQ6c4DY1nUpqt%2F%D0%B2%D0%B5%D1%81%2011.jpeg?alt=media&amp;token=2e820468-bcfe-4649-9112-d5c6e15d3f3f" alt=""><figcaption></figcaption></figure>

<mark style="color:green;">GET /query/{vectorCollectionId}</mark>

This endpoint sends a query to your vector database and returns closest values from the vectors. You must provide the query parameter “query” with your query in a string.

Example request:

<figure><img src="https://3537456676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiaoXkFJNtgMxQ59XY87F%2Fuploads%2FN2Nceo41EGxYQCyyvWj0%2F%D0%B2%D0%B5%D1%81%2012.jpeg?alt=media&amp;token=7c04fc8c-b5c1-48ed-adfe-988461fa9b8c" alt=""><figcaption></figcaption></figure>

Example response:

<figure><img src="https://3537456676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiaoXkFJNtgMxQ59XY87F%2Fuploads%2FVyCWfBsKRDdt1cYHdBVi%2F%D0%B2%D0%B5%D1%81%2013.jpeg?alt=media&amp;token=807dff7b-8c5a-41b7-9739-932c419eec86" alt=""><figcaption></figcaption></figure>
