> For the complete documentation index, see [llms.txt](https://docs.emno.io/emno/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emno.io/emno/reference/api-reference/collections.md).

# Collections

### Get all collections

Get all collections and their configurations

{% openapi src="/files/OxWW2q6r3FV7RpiIHohM" path="/collections" method="get" %}
[spec (1).json](https://1528978414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiledLWrnfp1vzzN4LWjy%2Fuploads%2F7BvYC37gHq2uTfCS0KG7%2Fspec%20\(1\).json?alt=media\&token=55c7cc77-abd2-4e18-93a6-9acb74534a21)
{% endopenapi %}

### Get a collection

Get a specific collection and it's configuration using it's id or name.&#x20;

{% openapi src="/files/OxWW2q6r3FV7RpiIHohM" path="/collections/{collectionIdOrName}" method="get" %}
[spec (1).json](https://1528978414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiledLWrnfp1vzzN4LWjy%2Fuploads%2F7BvYC37gHq2uTfCS0KG7%2Fspec%20\(1\).json?alt=media\&token=55c7cc77-abd2-4e18-93a6-9acb74534a21)
{% endopenapi %}

### Create a collection

{% openapi src="/files/OxWW2q6r3FV7RpiIHohM" path="/collections" method="post" %}
[spec (1).json](https://1528978414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiledLWrnfp1vzzN4LWjy%2Fuploads%2F7BvYC37gHq2uTfCS0KG7%2Fspec%20\(1\).json?alt=media\&token=55c7cc77-abd2-4e18-93a6-9acb74534a21)
{% endopenapi %}

### Delete a collection

Delete an existing collection using it's name or id.

{% openapi src="/files/OxWW2q6r3FV7RpiIHohM" path="/collections/{collectionIdOrName}" method="delete" %}
[spec (1).json](https://1528978414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiledLWrnfp1vzzN4LWjy%2Fuploads%2F7BvYC37gHq2uTfCS0KG7%2Fspec%20\(1\).json?alt=media\&token=55c7cc77-abd2-4e18-93a6-9acb74534a21)
{% endopenapi %}

### Update a collection

Update details of an existing collection.

{% openapi src="/files/OxWW2q6r3FV7RpiIHohM" path="/collections/{collectionId}" method="post" %}
[spec (1).json](https://1528978414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiledLWrnfp1vzzN4LWjy%2Fuploads%2F7BvYC37gHq2uTfCS0KG7%2Fspec%20\(1\).json?alt=media\&token=55c7cc77-abd2-4e18-93a6-9acb74534a21)
{% endopenapi %}

### Query a collection for a vector value

Search a collection using a query vector. It retrieves the vectors that are most similar to the queried vector, along with their similarity scores.

{% openapi src="/files/OxWW2q6r3FV7RpiIHohM" path="/collections/{collectionId}/query" method="post" %}
[spec (1).json](https://1528978414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiledLWrnfp1vzzN4LWjy%2Fuploads%2F7BvYC37gHq2uTfCS0KG7%2Fspec%20\(1\).json?alt=media\&token=55c7cc77-abd2-4e18-93a6-9acb74534a21)
{% endopenapi %}

### Query a collection for a text

Search a collection using a text. It retrieves the vectors that are most similar to the queried text, along with their similarity scores.

{% openapi src="/files/OxWW2q6r3FV7RpiIHohM" path="/collections/{collectionId}/query/text" method="post" %}
[spec (1).json](https://1528978414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiledLWrnfp1vzzN4LWjy%2Fuploads%2F7BvYC37gHq2uTfCS0KG7%2Fspec%20\(1\).json?alt=media\&token=55c7cc77-abd2-4e18-93a6-9acb74534a21)
{% endopenapi %}
