Configure query pipelines and machine learning for your hosted search page
Configure query pipelines and machine learning for your hosted search page
After you create your search page, we highly recommend that you configure query pipelines and Coveo Machine Learning (Coveo ML) for your search page for enhanced relevance.
A query pipeline can be associated with one or more Coveo ML models. A pipeline can also contain custom relevance tuning rules (thesaurus, featured results, stop words, etc.), which allows you to modify incoming search requests as required.
Hosted search pages created with the builder support the following Coveo ML models, among others:
-
Smart Snippets (not supported in legacy search pages)
Note
Each of the Coveo ML models listed here are optional, but we highly recommend configuring all of them for an optimal search experience. |
You’ll likely want to configure a main query pipeline that’s used to process manual search requests from your search page. Your RGA, ART, QS, DNE, and Smart Snippet models will be associated to this query pipeline.
Step 1: Create the main query pipeline
-
On the Query Pipelines (platform-ca | platform-eu | platform-au) page, click Add pipeline.
-
In the Add a Query Pipeline panel that opens, select the Configuration tab.
-
Enter a Pipeline name (for example,
Commerce_Search_Main_Pipeline
). -
(Optional) Enter a Description for the query pipeline to help Administration Console users understand its purpose.
-
(Optional) Select a Use case to categorize your query pipeline.
-
Under Condition, create one of the following query pipeline conditions, where you replace
<SEARCH_HUB>
with the search hub value of your search page.Create a
Search Hub is <SEARCH_HUB>
condition.ExamplesIf your search hub value is
Commerce_Search
, the condition for your main query pipeline should beSearch Hub is Commerce_Search
. -
In the Interface URL section, you can optionally define the URLs of the search interfaces that use this query pipeline.
-
Click Add Pipeline.
Note
Assuming each pipeline in your organization (except the default one) has a unique condition based on a distinct search hub value, all manual search requests originating from your search page will now be routed to your new pipeline. |
Step 2: Configure machine learning models
Configuring Coveo ML Automatic Relevance Tuning (ART) and Query Suggestions (QS) can significantly improve relevance for end users performing manual queries in your search page. DNE leverages usage analytics events to order facets and facet values according to the user query. Relevance Generative Answering (RGA) generates answers for natural language queries using generative AI technology and displays the answer directly on the results page.
If you’re using RGA, you must also use a Semantic Encoder (SE) model to ensure that answers are always generated using the most relevant items. Smart Snippets provide users with answers to their manual queries directly on the results page by displaying a snippet of the most relevant result item.
Notes
|
Step 2a: Create the models
Step 2b: Associate the models with your main query pipeline
Associate the models with the main query pipeline that you created for your search page.
-
Associate the ART model with your main query pipeline.
-
Associate the QS model with your main query pipeline.
-
Associate the DNE model with your main query pipeline.
-
Associate the RGA model and SE model, or associate the Smart Snippet model, with your main query pipeline.
Note
Assuming the ART and QS models are created successfully, and the main query pipeline is properly configured, the ART and QS features should now be enabled in your search page. For DNE, RGA, or Smart Snippets, you must enable the feature in your search page. |
Step 2c: Enable DNE, RGA, or Smart Snippets in your search page
Once you’ve created your DNE, RGA, or Smart Snippet model and associated it with your main query pipeline, you must enable the feature in your search page configuration.
Note
Smart Snippets aren’t supported in legacy search pages. Legacy search pages configurations appear with a Legacy Editor badge on the Search Pages (platform-ca | platform-eu | platform-au) page. |
Step 3: Define custom relevance tuning rules (advanced)
If needed, you can define custom relevance tuning rules in the main query pipeline that you created for your search page.
Use the following table as a reference:
Rule type | Use case |
---|---|
Defines synonyms to expand in user queries. |
|
Provides a high-ranking score boost to certain items. |
|
Defines terms to ignore in the basic query expression ( |
|
Increases or decreases the ranking scores of certain items by a certain amount. |
|
Fine-tunes the default weights of the standard index ranking factors. |
|
Defines actions to execute in the search panel under certain circumstances. |
|
Appends expressions to the basic ( |
|
Sets or overrides the values of certain search request parameters. |
Leading practices
|
What’s next?
Follow the search page implementation guide.