Index Management
The index management endpoints allow you to create, list, load, check status, and delete indexes on the brinicle server.Create Index
Create a new vector index with specified parameters.Request Body
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
index_name | string | Yes | — | Unique name (alphanumeric + underscore, max 64 chars) |
dim | integer | Yes | — | Vector dimensionality (>= 1) |
delta_ratio | float | No | 0.10 | Delta index ratio (0.0 to 0.5) |
params | object | No | defaults | HNSW parameters |
params.M | integer | No | 16 | Bi-directional links per node |
params.ef_construction | integer | No | 200 | Build-time search width |
params.ef_search | integer | No | 64 | Query-time search width |
params.rng_seed | integer | No | 0 | RNG seed |
Response
Errors
| Status | Condition |
|---|---|
| 409 | Index with this name already exists |
| 400 | Invalid parameters or creation failed |
List Indexes
Get a list of all loaded indexes.Response
Get Index Status
Check the status of a specific index.Response
| Field | Type | Description |
|---|---|---|
index_name | string | Name of the index |
dim | integer | Vector dimensionality |
has_index | boolean | Whether an index exists (data has been ingested and finalized) |
needs_rebuild | boolean | Whether the index would benefit from a compact rebuild |
Errors
| Status | Condition |
|---|---|
| 404 | Index not found |
Load Index
Load an existing index from disk into memory. Use this when the server restarts and you need to load indexes that were previously created.Request Body
Response
/app/data/ by default. When you load an index, the dimension is read from the index files on disk, so you don’t need to specify it.
Delete Index
Close or destroy an index.Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
destroy | boolean | false | If true, permanently delete index files from disk |
Response
destroy=false (default), the index is closed and removed from memory but the data files remain on disk. When destroy=true, all index files are permanently deleted.
Errors
| Status | Condition |
|---|---|
| 404 | Index not found |
| 400 | Failed to close or destroy the index |