Manage the Coveo Machine Learning Model Associations With Query Pipelines

When a Coveo Machine Learning (Coveo ML) model has been created, it must be associated with a query pipeline to be effective in a search interface.

Organization members with the required privileges can access the Machine Learning tab of a query pipeline configuration page to manage Coveo ML model associations for that query pipeline.

Leading Practices

Test the Model Efficiency

Once you have created a Coveo ML model, the leading practice is to test the model performance by doing an A/B test.

This allows you to test the model on a chosen proportion of the traffic passing through a given query pipeline. You can then assess the impact of the model by comparing the query pipeline search performance metrics with and without the model.

Once satisfied with the model efficiency, you can stop the A/B test to make the model effective for all the traffic passing through the query pipeline.

Note

You can also use the Model Testing (platform-eu | platform-au) feature of the Coveo Administration Console to compare two ART or QS models together, or to test the results a pipeline-model combination would provide if associated together.

Validate That the Model Is Effective

To validate that your Coveo ML models work as expected, you can inspect your models.

Plan the Usage of Custom Contexts

While the various Coveo ML features can perform well without custom context information, using custom contexts can take Coveo ML relevance one step further.

You can define custom contexts and then pass appropriate ones along with usage analytics events and queries to allow Coveo ML to take them into account.

Note

If you’re just getting started with Coveo ML, you can skip this step to take advantage of Coveo ML features more quickly and easily, and consider using custom contexts in a second phase.

Associate a Model With a Query Pipeline

The process of associating a Coveo ML model with a query pipeline differs depending on which Coveo ML feature you want to associate. Click one of the following model links to access the corresponding procedure:

Associate a Model With a Pipeline Using JSON

Advanced users may want to associate a Coveo ML model with a pipeline using JSON. Click one of the following model links to access the corresponding procedure:

Dissociate a Model

In the Machine Learning tab of the desired query pipeline, click the model that you want to dissociate from this pipeline, and then click Dissociate in the Action bar.

Reorder Model Associations

The Coveo ML models of a given type are executed in the order in which they appear in the page until a condition is satisfied.

Important

The first model on the list will be used if no conditions are met.

To reorder model associations in a query pipeline:

In the Machine Learning tab of the desired query pipeline, click the model whose position you want to change, and then use the Move up or Move down arrows in the Action bar to change the position of the model.

Reference

"Advanced Configuration" Section

When association ART, DNE, and PR models with a query pipeline, the Administration Console lets you configure settings in the Advanced Configuration section. Click one of the following model links to access the corresponding procedure:

Required Privileges

By default, members of the Administrators and Relevance Managers built-in groups can view and edit elements of the Models (platform-eu | platform-au) page.

The following table indicates the privileges required to use elements of the Models page and associated panels (see Manage Privileges and Privilege Reference).

Action Service - Domain Required access level

View model associations

Machine Learning - Models

Search - Query pipelines

View

Edit model associations

Machine Learning - Models

Search - Query pipelines

Edit

What's next for me?