Product Selector

Fusion 5.12
    Fusion 5.12

    Machine Learning (Responses) Stage

    Table of Contents

    This is a response rewriting stage that is similar to the Machine Learning query stage. It must be used after the Solr Query stage in your pipeline. It uses a trained machine learning model to analyze a field or fields of a Response object and stores the results of analysis in a new field added to either the Response or the Context object.

    In order to use the Machine Learning (Responses) Stage, you must train a machine learning model. There are two different ways to train a model:

    Configuration

    When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.

    Use a machine learning model to generate a prediction about a query.

    skip - boolean

    Set to true to skip this stage.

    Default: false

    label - string

    A unique label for this stage.

    <= 255 characters

    condition - string

    Define a conditional script that must result in true or false. This can be used to determine if the stage should process or not.

    modelId - stringrequired

    The ID of the ML model stored in the Fusion blob store. If you trained a model using a Fusion Job, by default the model ID will be the same as the job name.

    >= 1 characters

    queryFeatureFieldName - stringrequired

    Name of Request fields to feed into the model. Can be a single field name, or multiple field names are supported in this format: field1:weight,field2:weight,field3:weight

    >= 1 characters

    Default: q

    predictionFieldName - stringrequired

    Name of the Request field to store the prediction

    >= 1 characters

    defaultValue - string

    Value to provide if a prediction cannot be made

    failOnError - boolean

    Flag to indicate if this stage should throw an exception if an error occurs while generating a prediction for a document.

    Default: false

    storeInContext - boolean

    Flag to indicate that the prediction should be set as a context property instead of setting a field on the document.

    Default: false