curl --location --request POST 'https://api.getmetal.io/v1/index/bulk' \ --header 'Content-Type: application/json' \ --header 'x-metal-api-key: <api-key>' \ --header 'x-metal-client-id: <client-id>' \ --data-raw '{ "data": [ { "index": "index-id", "text": "Ozzy is the best vocalist of all time", "id": "my-unique-id1", "metadata": { "band": "Black Sabbath", "year": 1970 } }, { "index": "index-id", "text": "Dave Mustain disagrees", "id": "my-unique-id2", "metadata": { "band": "Megadeth", "year": 1983 } } ] }'
{ "data": { "ids": [ "my-unique-id1", "my-unique-id2" ] } }
This endpoint generates and stores a Document(embedding) with the inputted data in bulk.
-