π Indexes
Add Index
This endpoint creates an index for an app.
POST
/
v1
/
indexes
Auth Headers
x-metal-api-key
string
requiredAn API key for your org.
x-metal-client-id
string
requiredA Client ID for your org.
Body
model
string
requiredThe Embedding Model to use. Can be either βtext-embedding-ada-002β, βclipβ, or βcustomβ.
name
string
requiredName of the Index
datasource
string
Datasource ID to connect to the index.
indexType
string
default: "HNSW"Type of the index. FLAT
or HNSW
dimensions
integer
This is only required if you are using a βcustomβ model.
filters
object[]
chunkConfig
object
tableChunkConfig
object
Response
data
Index Object