Skip to main content

Translate Model Call Tool

The Translate Model Call Tool allows users to translate text from one language to another by providing the text, source language, target language, and model.

Steps to Use the Translate Model Call Tool

Step 1: Access the Tool

  • Click on Add User Step.
  • From the available options, select the Translate Model Call Tool.

Step 2: Input the Text

You need to provide the text that you want to translate. You have two options for entering the text:

  • Manual Entry: Type the text directly into the input field.
  • User Input Variable: Use a user input variable to dynamically provide the text. To use input variables within your text, use the syntax {{variable_name}} to access the value of an input variable. For example, if there is an input parameter named “inputText”, you can access its value using {{inputText}}.

Step 3: Select the Source Language

Choose the source language (the language of the input text). Choose the appropriate source language from the available list of languages.

Step 4: Select the Target Language

Choose the target language (the language to which the text will be translated). Choose the appropriate target language from the available list of languages.

Step 5: Select the Translation Model

Choose the translation model to be used for the translation process. Choose the appropriate translation model from the available list of models.

Step 6: Configure Guardrails Validators (Optional)

You can set up guardrails validators to ensure the translation meets certain criteria. Set up validators based on your specific needs. This may include rules for translation quality, context relevance, or other criteria.

Step 7: Execute the Translation

Once you have entered the text, selected the source and target languages, and chosen the translation model, initiate the translation:

  1. Run the tool: Click the Run button to start the translation process.
  2. Results: The tool will process your request and translate the text based on the provided inputs.

Step 8: View the Output

The translated text will be displayed in the results section. The results will be presented in a structured format, often in plain text or JSON, depending on the nature of the output.

Step 9: Utilize the Translated Text

You can now use the translated text for further processing, analysis, or integration into your application.

Tips for Effective Use

  • Clear Text: Provide clear and concise text to get the most accurate translation.
  • Appropriate Language Selection: Choose the correct source and target languages that best fit your translation needs.
  • Effective Guardrails: Apply guardrails validators to ensure the quality and relevance of the translated text.

If you have any questions or need further assistance, please refer to the support section or contact the helpdesk([email protected]).