POST
/
ai
/
prediction
/
embedding
/
{MODEL_ID}
Custom model prediction
curl --request POST \
  --url https://application_id.applications.lucidworks.com/ai/prediction/embedding/{MODEL_ID} \
  --header 'Content-Type: application/json' \
  --data '{
  "batch": [
    {
      "text": "<string>"
    }
  ],
  "useCaseConfig": {
    "dataType": "query or passage"
  }
}'
{
  "predictions": [
    {
      "vector": [
        -0.0011799398344010115,
        0.07051781564950943,
        -0.06832550466060638,
        0.020428132265806198,
        0.11977626383304596
      ]
    }
  ]
}

Headers

Authorization: Bearer ACCESS_TOKEN
string

The authentication and authorization access token.

Content-Type
string

application/json

Example:

"application/json"

Path Parameters

MODEL_ID
string
required

Body

application/json

Response

200 - application/json

OK

The response is of type object.