v1
latestOpenAPI 3.0.32026-07-2659199427.5 KBGet predictions
Part Number Detection use case
The Part Number Detection use case of the LWAI Prediction API detects part numbers in order to help with query routing and classification, and uses the embedding model to ingest text and return a JSON response of true if the input is a part number, or false if the input is not a part number.
post/ai/prediction/part-number-detection/{CUSTOM_DEPLOYMENT_ID}
Path parameters
CUSTOM_DEPLOYMENT_IDstring required
Unique deployment ID for the model. This use case is only supported with a custom-trained embedding model trained with the Part Number Classification data schema option.
Headers
Authorizationstring required
Bearer token used for authentication with machinelearning.predict scope.
Request body
Example request
{
"batch": [
{
"text": "54956gf-98796v"
}
],
"modelConfig": {
"lowercaseInput": true
}
}Response
OK
Example response
{
"predictions": [
{
"response": "true: 0.64"
}
]
}