Skip to main content
Production use of this feature is available for specific editions only. Contact our sales team for more information.
The Cortex Translate transformation component uses Snowflake Cortex to translate the input text of one or more columns from one supported language to another—for example, from English to German. When a column is included, all rows in that column will be translated. For a list of supported languages, read the Usage notes. To use this component, you must use a Snowflake role that has been granted the SNOWFLAKE.CORTEX_USER database role. Read Required Privileges to learn more about granting this privilege. To learn more about Snowflake Cortex, such as availability, usage quotas, managing costs, and more, read Large Language Model (LLM) Functions (Snowflake Cortex).

Use case

This component lets you translate content between two languages directly in your pipeline. For example, you can use it to:
  • Translate support tickets into the language your customer support teams speak so that they can respond to requests with better efficiency.
  • Translate product descriptions for products to be sold online in different countries or regions.

Properties

Name
string
required
A human-readable name for the component.
Columns
column editor
required
  • Input Column: Select a column from your input table. The text in each row of this column will be translated.
  • Source Language: Select the source language that the input text begins as.
  • Target Language: Select the target language to translate the input text to.
To translate more than one input column, click +.
Include Input Columns
boolean
required
  • Yes: Includes both your source language input columns and the new target language translation columns. This will also include those input columns not selected in Columns.
  • No: Only includes the new target language translation columns.

Example

A company has hired a support engineer, Klaus, whose first language is German. Klaus’s English is passable, but he can respond to support queries faster if he can read the queries in German. Klaus’s latest support cases look like this:
Klaus can use the Cortex Translate component to translate the SUPPORT CASE column from English to German, making it easier for him to understand and respond to support cases. Translate chosen columns: Cortex Translate component properties:
  • Columns
    • Input Column: SUPPORT CASE
    • Source Language: English
    • Target Language: German
  • Include Input Columns: YES
By setting Include Input Columns to YES, the original columns from the table will be kept as part of the pipeline run, and the target language column (in this case, de_SUPPORT CASE) is appended to the end of the table.