Associate a model via query pipeline statements
Associate a model via query pipeline statements
You can configure Coveo Machine Learning models by creating query pipeline statements expressing the facetSense, querySuggest, recommendation, or topClicks features (see Query pipeline features).
Coveo ML models can enhance the end-user experience by:
-
Providing query suggestions that have yielded relevant results in the past (
querySuggest, or Query Suggestion (QS) models). -
Recommending related content based on the end-user’s recent actions, as well as on actions previously performed by similar end users (
recommendation, or Content Recommendation (CR) models). -
Ensuring that contextually relevant items appear in the query result list with an elevated ranking score, even if those items don’t match the basic and/or advanced query expression (
topClicks, or Automatic Relevance Tuning (ART) models). -
Reordering facets and facet values, and providing category-based item ranking score boosts (
facetSense, or dynamic navigation experience models).
|
|
Note
In the Coveo Administration Console, you can manage statements expressing Coveo ML features from the Machine learning tab in a query pipeline configuration page. See Manage models. Dynamic Navigation Experience ( |
The following diagram shows the process of a query being sent to the Search API and the order of execution of query pipeline features.
|
|
Note
Only query pipeline statements expressing the |
Syntax
Use the following query pipeline language (QPL) syntax to define a statement expressing the topClicks, querySuggest, recommendation, or facetSense features:
topClicks | querySuggest | recommendation | facetSense <modelConfiguration>
<modelConfiguration>
A comma-separated list of key-value pairs, where each key-value must be a valid QPL Coveo ML model configuration option.
QPL Coveo ML model configuration options
The following table details the available configuration options when creating a Coveo ML model through QPL.
| Option | Type | Applicable models | Default Search API value | Description |
|---|---|---|---|---|
|
Boolean |
All |
|
Whether to enable the model. |
|
String |
All |
|
The filter to apply to common event dimensions when exporting Coveo Analytics data to build the model. |
|
String |
All |
|
The filter to apply to search event dimensions when exporting Coveo Analytics data to build the model. |
|
String |
All |
|
The filter to apply to custom event dimensions when exporting Coveo Analytics data to build the model. |
|
String |
All |
|
The length of time to consider when exporting Coveo Analytics data to build/rebuild the model. Must be in the ISO-8601 format. |
|
String |
All |
|
The offset period to apply when exporting Coveo Analytics data to build/rebuild the model. Must be in the ISO-8601 format. |
|
String |
All |
|
The frequency at which to rebuild the model. Must be in the ISO-8601 format. |
|
String |
All |
|
The maximum age of cached query results items to consider. Must be in the ISO-8601 format. |
|
String |
All |
|
A descriptive human-readable display name for the model. |
|
Unsigned integer |
All except |
See description |
The maximum number of recommendations the model can output. Default Search API value is |
|
Integer |
All except |
|
The ranking score modifier to apply to items recommended by the model. Must be in range |
|
Boolean |
|
|
Whether items recommended by the model must match the basic query expression. |
|
Boolean |
|
|
Whether items recommended by the model must match the advanced query expression. |
|
Boolean |
|
|
Whether to enable the Intelligent Term Detection (ITD) feature on the model. |