# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.emno.io/emno/reference/api-reference/collections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
