GET
/
ai
/
async-prediction
/
{PREDICTION_ID}
Get results by predictionId
curl --request GET \
  --url https://application_id.applications.lucidworks.com/ai/async-prediction/{PREDICTION_ID}
{
  "predictionId": "fd110486-f168-47c0-a419-1518a4840589",
  "status": "READY",
  "predictions": [
    {
      "response": "CORRECT: misspelled",
      "tokensUsed": {
        "promptTokens": 148,
        "completionTokens": 27,
        "totalTokens": 175
      }
    }
  ]
}

Path Parameters

PREDICTION_ID
string
required

Response

OK

predictionId
string<uuid>

The universal unique identifier (UUID) returned in the POST request. This UUID is required in the GET request to retrieve results.

Example:

"fd110486-f168-47c0-a419-1518a4840589"

status
string

The current status of the prediction. Allowed values are:

  • SUBMITTED - The POST request was successful and the response has returned the predictionId and status that is used by the GET request.

  • READY - The results associated with the predictionId are available and ready to be retrieved.

  • ERROR - An error was generated when the GET request was sent.

  • RETRIEVED - The results associated with the predicitonId are returned successfully when the GET request was sent.

Example:

"READY"

predictions
object[]