Product Selector

Fusion 5.12
    Fusion 5.12

    Add Smart Answers Pipelines to an Existing App

    When you create a new Fusion app, Fusion also creates the default Smart Answers index and query pipelines for that app.

    If you have an existing app and you want to add the latest Smart Answers default pipelines, follow the instructions below.

    Create the new Smart Answers Index Pipeline

    To add the new Smart Answers index pipeline to an existing app, execute the following curl command, substituting for the fusion_host and the app_name in the url:

    curl -u USERNAME:PASSWORD -X POST -H 'content-type: application/json' -d '{"id":"smart-answers","stages":[{"type":"field-mapping"},{"type":"solr-dynamic-field-name-mapping"},{"type":"model-to-milvus","modelId":"smart-answers-encoder","modelOutputVector":"vector","milvusCollection":"milvus_collection","fieldToEncode":"change-me"},{"type":"solr-index"}]}' http://{fusion_host}/api/apps/{app_name}/index-pipelines

    Create the new Smart Answers Query Pipeline

    To add the new Smart Answers query pipeline to an existing app, execute the following curl command, substituting for the fusion_host and the app_name in the url:

    curl -u USERNAME:PASSWORD -X POST -H 'content-type: application/json' -d '{"id":"smart-answers","stages":[{"type":"search-fields"},{"type":"milvus-query-stage","modelId":"smart-answers-encoder","modelOutputVector":"vector","milvusResultsContextKey":"milvus_results","milvusVectorsCollection":"milvus_collection","milvusNumResults":10},{"type":"milvus-ensemble-query-stage","ensembleExpression":"1.0*milvus_results","resultFieldName":"ensemble_score"},{"type":"solr-query"},{"type":"milvus-response-update-stage"}]}' http://{fusion_host}/api/apps/{app_name}/query-pipelines