v1
latestOpenAPI 3.0.22026-07-173834119.9 KBVectorization
Create Opensearch Collection
Endpoint to Create a Vector Store
This endpoint creates a vector store and returns the store ID that can be used to create an index.
Request Body
| Field | Type | Description |
|---|---|---|
| store_type | str | The type of the vector store. |
| description | str | The description of the vector store. |
| tags | Optional[Dict[str, str]] | Tags to associate with the vector store. |
Example Request Body
```json
{
"store_type": "opensearchserverless",
"description": "A vector store for semantic search.",
"tags": {
"environment": "production",
"team": "data"
}
}
```
Response Body
| Field | Type | Description |
|---|---|---|
| store_name | str | The name of the created store. |
| store_type | str | The type of the created store. |
| store_id | str | The ID of the created store. |
| message | str | A message indicating the status of the operation. |
Errors
- 400 Bad Request: If the store type is not supported.
- 500 Internal Server Error: If there is an unexpected error during the creation of the vector store.
post/vector/store/create
Request body
Response
Successful Response