Lucidworks AI Prediction API
topK
and similarityCutoff
parameters can be used to achieve behaviors where only the following are returned:
APPLICATION_ID
for your Lucidworks AI application. For more information, see credentials to use APIs.machinelearning.predict
. For more information, see Authentication API.USE_CASE
and MODEL_ID
fields for the use case request. The path is: /ai/prediction/USE_CASE/MODEL_ID
. A list of supported models is returned in the Lucidworks AI Use Case API.classification
use case are unique to this use case, including values for the useCaseConfig
parameter.
Refer to the API spec for more information.
labels
parameter along with the text to classify. The response returns all labels in descending order of the highest similarity score.
You can also use the topK
and similarityCutoff
parameters to limit the respons and more easily utilize the output labels.
For more information about the parameters, see Unique values for the classification use case.
topK
and similarityCutoff
parameter settings to limit the response and more easily utilize the output labels.class
field and the field to be classified as a pair of documents in a collection.
class
,query
.