curl --location --request POST 'https://api.getmetal.io/v1/indexes' \ --header 'Content-Type: application/json' \ --header 'x-metal-api-key: <api-key>' \ --header 'x-metal-client-id: <client-id>' \ --data-raw '{ "model": "text-embedding-ada-002", "name": "Ozzy Osbourne", "filters": [ { "field": "name", "type": "string" }, { "field": "age", "type": "number" } ] }'
{ "data": { "id": "1", "createdAt": "2023-08-23T22:13:31.539Z", "status": "LIVE", "name": "Ozzy Osbourne", "model": "text-embedding-ada-002", "dimensions": 1536, "filters": [ { "field": "name", "type": "string" }, { "field": "age", "type": "number" } ], "chunkConfig": { "size": 500, "overlap": 20 }, "tableChunkConfig": { "size": 4000 }, "counts": { "docs": 0, } } }
This endpoint creates an index for an app.
FLAT
HNSW
Show properties
string
number