--- title: Export and import query pipeline elements slug: '2023' canonical_url: https://docs.coveo.com/en/2023/ collection: tune-relevance source_format: adoc --- # Export and import query pipeline elements When you've created [query pipeline](https://docs.coveo.com/en/180/) elements, such as [rules](https://docs.coveo.com/en/236/) and [Coveo Machine Learning (Coveo ML)](https://docs.coveo.com/en/188/) [models](https://docs.coveo.com/en/1012/), and tested their effectiveness, you may want to reuse them in different pipelines. The import and export features allow members with the [required privileges](https://docs.coveo.com/en/3151/) to copy query pipeline elements and reuse them in another query pipeline or [Coveo organization](https://docs.coveo.com/en/185/). > **Note** > > Coveo ML models can only be imported and exported within the same organization. ## Access the "Import" or "Export" panel On the [**Query Pipelines**](https://platform.cloud.coveo.com/admin/#/orgid/search/pipelines/) ([platform-ca](https://platform-ca.cloud.coveo.com/admin/#/orgid/search/pipelines/) | [platform-eu](https://platform-eu.cloud.coveo.com/admin/#/orgid/search/pipelines/) | [platform-au](https://platform-au.cloud.coveo.com/admin/#/orgid/search/pipelines/)) page, click the desired pipeline, and then click **More** > **Import** or **Export** in the Action bar. ## Export query pipeline elements . [Access the "Export" panel](#access-the-import-or-export-panel). . In the **Export** panel, select the type of pipeline element you want to export. ![Export panel for pipeline rules and models | Coveo Platform](https://docs.coveo.com/en/assets/images/tune-relevance/export-panel.png) . Click **Export**. > **Note** > > The data is exported to a CSV file in the **Downloads** folder of your browser. ## Import query pipeline elements . [Access the "Import" panel](#access-the-import-or-export-panel). . In the **Import/Export** panel: .. Click **Select a file**, and then select the desired CSV file. .. Select the type of query pipeline element to import from the selected file. .. Click **Import**. ![Import panel for rules and models | Coveo Platform](https://docs.coveo.com/en/assets/images/tune-relevance/import-panel.png) > **Important** > > Importing query pipeline rules overwrites existing rules. > For example, importing [thesaurus rules](https://docs.coveo.com/en/3405/) from another query pipeline will overwrite any existing thesaurus rules in the current query pipeline. ## Creating CSV files for importation If you have a set of rules that you want to create for your organization, you can write them all in a CSV file which you can then import into your pipeline. This allows you to import multiple rules at once without having to manually create them using the [**Query_Pipeline_Name**] page. You can use the following template in a spreadsheet to create your rules: ![CSV](https://docs.coveo.com/en/assets/images/tune-relevance/csv-pattern.png) ### Definition In this column, enter rules using the proper [query pipeline language (QPL)](https://docs.coveo.com/en/235/) syntax: * [Featured results](https://docs.coveo.com/en/1468/) * [Filters](https://docs.coveo.com/en/1440#syntax) * [Query parameters](https://docs.coveo.com/en/1491#syntax) * [Ranking expressions](https://docs.coveo.com/en/1452/) * [Ranking weights](https://docs.coveo.com/en/1470#syntax) * [Stop words](https://docs.coveo.com/en/1446#syntax) * [Thesaurus](https://docs.coveo.com/en/1442#syntax) * [Triggers](https://docs.coveo.com/en/1458#syntax) * [Machine Learning models](https://docs.coveo.com/en/1455#qpl-coveo-ml-model-configuration-options) > **Important** > > Coveo ML models can't be imported into another organization. ### Condition In this column, enter rules using the proper QPL syntax. ### Description In this column, you can enter a message to be displayed in the **Description** column of the [**Query_Pipeline_Name**] page. ### Feature In this column, enter the Search API name of the [query pipeline feature](https://docs.coveo.com/en/1450#query-pipeline-features) you're creating. Once you've properly formatted your spreadsheet, ensure that you save the document in the CSV file format. You can then use this document to [import your query pipeline elements](#import-query-pipeline-elements). ## Exporting and importing query pipeline rules between organizations > **Important** > > You can't import Coveo ML models from a different organization. You may have more than one Coveo organization, typically a [sandbox organization](https://docs.coveo.com/en/2959/) and a production organization. Once you've tested a given query pipeline configuration change in your sandbox organization, you may want to apply this change to your production organization. If you recreate your configuration changes from scratch in the production organization, there's a risk of introducing errors. Instead, you should use the exportation and importation features to transfer pipeline elements from one organization to another. . Access the Coveo organization from which you want to import query pipeline rules, and then [access the "Import" or "Export" panel](#access-the-import-or-export-panel). . [Export the desired query pipeline rules](#export-query-pipeline-elements). . [Switch to the organization](https://docs.coveo.com/en/1841#organization-picker) in which you want to import the pipeline rules. . [Access the "Import" or "Export" panel](#access-the-import-or-export-panel). . [Import the desired query pipeline rules](#import-query-pipeline-elements).