Configure query pipelines and machine learning

Coveo highly recommends that you configure query pipelines and Coveo Machine Learning (Coveo ML) models for your IPX configuration to increase the relevance of search results and enhance the overall search experience.

This article details how to configure the recommended query pipeline configuration for IPX. You can create the query pipelines and Coveo Machine Learning (Coveo ML) models manually, or you can choose to create them automatically when creating a new IPX configuration.

Coveo recommends that you use two query pipelines for your IPX configuration:

  • A search query pipeline that’s used to process user queries from your IPX search interface to provide enhanced relevancy of search results.

    This is the main query pipeline for your IPX search interface. Queries routed through this query pipeline are modified and processed according to the query pipeline rules and assigned Coveo Machine Learning (Coveo ML) models. As such, you should configure relevance tuning rules, such as thesaurus and ranking weight rules, and associate the following IPX-supported Coveo Machine Learning (Coveo ML) models to this query pipeline.

    Notes
    • While each of the supported Coveo ML models listed here are optional, Coveo highly recommends configuring them for an optimal search experience.

    • RGA and Smart Snippets aren’t supported in the same IPX interface. You must choose to use one or the other.

  • A recommendation query pipeline with an associated Content Recommendations (CR) model. This query pipeline is used solely for the CR model to provide relevant suggestions on the recommendation page of your IPX search interface.

    Coveo IPX recommendations

Automatic query pipeline configuration

When creating a new IPX search interface, you can choose to enable the Include basic query pipelines and ML models option. This option automatically creates the two recommended query pipelines, and the minimum recommended Coveo ML models for each pipeline, for your IPX configuration.

Specifically, the Include basic query pipelines and ML models option creates the following, where <SEARCH_HUB> and <IPX CONFIGURATION NAME> is the name of your IPX configuration:

  • A search query pipeline for your IPX configuration with the following settings:

    • The query pipeline name is Search pipeline - <IPX CONFIGURATION NAME>.

    • The query pipeline condition is Search Hub is <SEARCH_HUB> and Context[IPX_Name] is <IPX CONFIGURATION NAME> and Recommendation is empty. This condition is used to route the user queries from your IPX search interface to this query pipeline.

    Example

    For example, if your IPX configuration name is IPX Workplace, the created search query pipeline is:

    IPX search query pipeline
  • A recommendation query pipeline for your IPX configuration with the following settings:

    • The query pipeline name is Recommendation pipeline - <IPX CONFIGURATION NAME>.

    • The query pipeline condition is Search Hub is <SEARCH_HUB> and Context[IPX_Name] is <IPX CONFIGURATION NAME> and Recommendation is Recommendation. This condition ensures that your IPX uses this query pipeline for content recommendations.

    Example

    For example, if your IPX configuration name is IPX Workplace, the created recommendation query pipeline is:

    IPX recommendation query pipeline
  • The following Coveo ML models that are associated with the appropriate query pipeline:

    • An Automatic Relevance Tuning (ART) model named ART model - <IPX CONFIGURATION NAME> with default settings that’s associated with the search query pipeline.

    • A Query Suggestion (QS) model named QS model - <IPX CONFIGURATION NAME> with default settings that’s associated with the search query pipeline.

    • A Content Recommendations (CR) model named CR model - <IPX CONFIGURATION NAME> with default settings that’s associated with the recommendation query pipeline.

    Example

    For example, if your IPX configuration name is IPX Workplace, the created Coveo ML models are:

    IPX ML models
Notes
  • The query pipelines and ML models are created using default settings. While the automatically created query pipelines and models are fully functional with your IPX configuration using the default settings, Coveo recommends that you define relevance tuning rules for the search query pipeline, and modify the ART, QS, and CR model configuration as required. Also, your IPX search interface supports other Coveo ML models, such as Relevance Generative Answering (RGA) and Smart Snippets, that you can create and assign to the search query pipeline to further enhance the search experience.

  • If your Coveo organization license doesn’t allow access to create a specific type of ML model, that model isn’t created automatically. For example, if your organization doesn’t allow you to create a Content Recommendations (CR) model, all query pipelines and models listed above are created except for the CR model.

Important

If you delete an IPX configuration for which query pipelines and ML models were automatically created, the corresponding query pipelines, ML models, and conditions will also be deleted. Make sure they’re not used by other search interfaces before deleting the IPX configuration.

Deleting an IPX search interface configuration is irreversible.

Manual query pipeline configuration

This section details how to manually create the recommended search and recommendation query pipelines, and the supported Coveo Machine Learning (Coveo ML) models for use with your IPX configuration.

Note

You can choose to automatically create the two query pipelines, as well as the minimum recommended Coveo ML models for each pipeline, when creating a new IPX configuration. For more information, see Automatic query pipeline configuration.

Configure the search query pipeline and ML models

The search query pipeline is the main query pipeline for your IPX search interface that’s used to process user queries from your IPX search interface to provide enhanced relevancy of search results.

Step 1: Create the search query pipeline

  1. On the Query Pipelines (platform-ca | platform-eu | platform-au) page, click Add pipeline.

  2. In the Add a Query Pipeline panel that opens, select the Configuration tab.

  3. Enter a Pipeline name (for example, IPX_Workplace_Main_Pipeline).

  4. (Optional) Enter a Description for the query pipeline to help Administration Console users understand its purpose.

  5. (Optional) Select a Use case to categorize your query pipeline.

  6. Under Condition, create one of the following query pipeline conditions, where you replace <SEARCH_HUB> with the search hub value of your IPX interface.

    Note

    The In-Product Experiences (platform-ca | platform-eu | platform-au) page shows the search hub value for each of your IPX configurations.

    In-Product Experiences page

    The condition you create depends on if you plan on using a Coveo ML Content Recommendation (CR) model to allow your IPX interface to suggest content related to the current web page:

    • Search Hub is <SEARCH_HUB> and Recommendation is empty: Create this condition if you plan on using Coveo ML content recommendations.

      Note

      A CR model can’t be associated with a pipeline that contains other types of machine learning models. Since the main query pipeline is used for manual search requests and will contain other model types, such as ART and QS models, adding Recommendation is empty to the condition ensures that the main query pipeline won’t be used for content recommendations. You’ll create a dedicated query pipeline for CR.

    • Search Hub is <SEARCH_HUB>: Create this condition if you don’t plan on using Coveo ML content recommendations.

      Examples
      • If your IPX search hub value is IPX_Workplace, and you plan on configuring Coveo ML content recommendations, the condition for your main query pipeline should be:

        Condition with recommendation is empty
      • If your IPX search hub value is IPX_Workplace, and you don’t plan on configuring Coveo ML content recommendations, the condition for your main query pipeline should be:

        Condition with no recommendations
  7. 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 IPX interface will now be routed to your new pipeline.

Step 2: Configure ML models for the search query pipeline

Configuring Coveo ML Automatic Relevance Tuning (ART) and Query Suggestions (QS) can significantly improve relevance for end users performing manual queries in your IPX search interface. 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. 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
  • RGA and Smart Snippets aren’t supported in the same IPX interface. You must choose to use one or the other.

  • 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 aren’t supported in classic IPX search interfaces. Classic IPX interface configurations appear with a Classic badge on the In-Product Experiences (platform-ca | platform-eu | platform-au) page.

    Classic badge
Step 2B: Associate the models with your search query pipeline
  1. Associate the ART model with your IPX configuration’s search query pipeline.

  2. Associate the QS model with your IPX configuration’s search query pipeline.

  3. Associate the DNE model with your IPX configuration’s search query pipeline.

  4. Associate the RGA model and SE model, or associate the Smart Snippet model, with your IPX configuration’s search query pipeline.

Note

Assuming the ART and QS models are created successfully, and the search query pipeline is properly configured, ART, QS, and SE should now be enabled in your IPX interface. For DNE, RGA, or Smart Snippets, you must enable the feature in your IPX search interface.

Step 2C: Enable RGA or Smart Snippets in your IPX interface

Once you’ve created your DNE, RGA, or Smart Snippet model and associated it with your search query pipeline, you must enable the feature in your IPX search interface configuration.

Note

Smart Snippets aren’t supported in classic IPX search interfaces. Classic IPX interface configurations appear with a Classic badge on the In-Product Experiences (platform-ca | platform-eu | platform-au) page.

Classic badge

Step 3: Define custom relevance tuning rules (advanced)

If needed, you can define custom relevance tuning rules in your IPX configuration’s search query pipeline.

  1. On the Query Pipelines (platform-ca | platform-eu | platform-au) page, click your IPX configuration’s search query pipeline, and then click Edit components in the Action bar.

  2. Define one or more of the following rules:

    Rule type Use case

    Thesaurus

    Defines synonyms to expand in user queries.

    Featured results

    Provides a high-ranking score boost to certain items.

    Stop words

    Defines terms to ignore in the basic query expression (q).

    Ranking expressions

    Increases or decreases the ranking scores of certain items by a certain amount.

    Ranking weights

    Fine-tunes the default weights of the standard index ranking factors.

    Triggers

    Defines actions to execute in the search panel under certain circumstances.

    Filters

    Appends expressions to the basic (q), advanced (aq), constant (cq), disjunction (dq), or large (lq) query expression.

    Query parameters

    Sets or overrides the values of certain search request parameters.

Tip
Leading practices

Configure the recommendation query pipeline and CR model

The recommendation query pipeline is used solely for the CR model to provide relevant suggestions on the recommendation page of your IPX search interface.

Step 1: Create the recommendation query pipeline

  1. On the Query Pipelines (platform-ca | platform-eu | platform-au) page, click Add pipeline.

  2. In the Add a Query Pipeline panel that opens, select the Configuration tab.

  3. Enter a Pipeline name (for example, IPX_Workplace_Recommendation_Pipeline).

  4. (Optional) Enter a Description for the query pipeline to help Administration Console users understand its purpose.

  5. (Optional) Select a Use case to categorize your query pipeline.

  6. (Recommended) Under Condition, create a Search Hub is <SEARCH_HUB> AND Recommendation is Recommendation query pipeline condition, where you replace <SEARCH_HUB> with the search hub value of your IPX interface. Adding Recommendation is Recommendation to the condition ensures that this query pipeline is used for content recommendations.

    Note

    The In-Product Experiences (platform-ca | platform-eu | platform-au) page shows the search hub value for each of your IPX configurations.

    In-Product Experiences page
    Example

    If your IPX search hub value is IPX_Workplace, the condition for your recommendation query pipeline should be:

    Condition for recommendation
  7. Click Add Pipeline.

Note

The above configuration ensures that this query pipeline is used only for content recommendations, and that manual search requests from your IPX interface won’t be routed to this query pipeline. When using content recommendations, your IPX configuration’s search query pipeline must have a Search Hub is <SEARCH_HUB> and Recommendation is empty condition.

To complete Coveo ML CR configuration, create and associate a CR model to this pipeline.

Step 2: Create the CR model

Note

Assuming that enough usage analytics data is available in your organization, Coveo will generate the model. Generating a model typically takes about 30 minutes, depending on the amount of data to process.

Step 3: Associate the CR model with the recommendation query pipeline

Associate the CR model with your IPX configuration’s recommendation query pipeline.

Important

CR models can’t be associated with pipelines that contain other model types.

Note

Assuming the platform was able to generate the CR model, and the recommendation query pipeline is properly configured, the Coveo ML CR feature should now be enabled in your IPX interface.