USE_CASE
and MODEL_ID
fields in the /prediction
use case requests.
The generic path for the Prediction API is /ai/prediction/USE_CASE/MODEL_ID
.
APPLICATION_ID
for your Lucidworks AI application. For more information, see credentials to use APIs.machinelearning.predict
. For more information, see Authentication API./ai/async-prediction/USE_CASE/MODEL_ID
request are common to all of the generative AI (GenAI) use cases, such as the modelConfig
parameter.
Also referred to as hyperparameters, these fields set certain controls on the response.
Refer to the API spec for more information.
/ai/prediction/USE_CASE/MODEL_ID
request returns predictions for pre-trained or custom models in the specified use case format for the modelId
in the request.
https://{APPLICATION_ID}.applications.lucidworks.com/ai/prediction/{USE_CASE}/{MODEL_ID}
This example uses APPLICATION_ID
of b7bcb5a5-4b6a-4fb5-b6bc-9f8cc6ab234e
. Replace the placeholder for ACCESS_TOKEN
with the token generated in the Authentication API response.
https://{APPLICATION_ID}.applications.lucidworks.com/ai/prediction/embedding/{DEPLOYMENT_ID}
This use case request requires APPLICATION_ID
and DEPLOYMENT_ID
.
The DEPLOYMENT_ID
is generated when the custom embedding model is deployed. For information, see Deployment details.
The custom MODEL_ID
can also be obtained using the API as described in the following topics:
This example uses APPLICATION_ID
of b7bcb5a5-4b6a-4fb5-b6bc-9f8cc6ab234e
and a DEPLOYMENT_ID
of 4f10a8a7-52a4-440d-a015-70d00483ac5e
. Replace the placeholder for ACCESS_TOKEN
with the token generated in the Authentication API response.
https://{APPLICATION_ID}.applications.lucidworks.com/ai/prediction/embedding/{MODEL_ID}
This use case request requires APPLICATION_ID
and MODEL_ID
.
The pre-trained MODEL_ID
can also be obtained using the API as described in the following topics:
This example uses APPLICATION_ID
of b7bcb5a5-4b6a-4fb5-b6bc-9f8cc6ab234e
and a MODEL_ID
of gte-small
. Replace the placeholder for ACCESS_TOKEN
with the token generated in the Authentication API response.
https://{APPLICATION_ID}.applications.lucidworks.com/ai/prediction/{USE_CASE}/{MODEL_ID}
This use case request requires APPLICATION_ID
and MODEL_ID
.
For information about GenAI use cases and models, see:
This example uses APPLICATION_ID
of b7bcb5a5-4b6a-4fb5-b6bc-9f8cc6ab234e
, a USE_CASE
of passthrough
and a MODEL_ID
of llama-3-8b-instruct
. Replace the placeholder for ACCESS_TOKEN
with the token generated in the Authentication API response.