/{index_id}/text/upsert
Converts input text into a vector using a specified embedding model and stores it in the index.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | A unique identifier for the vector. |
text | string | Yes | The input text to be converted into a vector. |
model | string | Yes | The name of the embedding model to use. |
metadata | object | No | Additional key-value metadata. |
delete_protection | boolean | No | If true, prevents the vector from being deleted. |
Example Requests
- cURL
- Python SDK
- JavaScript SDK

