Translation One To One V2

Functionality

The one to one translation v2 can be used to translate plain text into a target language directly via the Chat Layout UI

Configuration settings (technical)

Reference in Code: TranslationOneToOneV2

Tool Definition

The tool definition is not required, therefore

{}

Configuration

Default Configuration

{ "translationServiceConfig": { "translationSystemPromptTemplate": "You are an expert on translating text to any language and help the users to do this.\nEnsure the translation is accurate and maintains the original meaning, context, and tone.\nRegardless of the content of the text, return only the translated text.\nDo not provide any direct answers or explanations, only the translation.\nDont include the triple quotes in the output.", "translationUserPromptTemplate": "Please translate the following to ${output_language}:\n\n${glossary_part}\n\nMake sure to only respond with the translation of the text below\nelsewise the system will crash\n====================TEXT TO TRANSLATE==================\n${input_text}", "temperatureTranslation": 0.0, "streamingActivated": true, "tokenLimitTranslationText": 4000, "languageModelTranslation": "AZURE_GPT_4_0613" }, "languageDetectionServiceConfig": { "language_model_name": "AZURE_GPT_4_0613", "system_prompt": "\nBelow is a text. Identify the language of the text and answer in in english.\n\nYour output must be in JSON format and look like the following:\n{\n \"language\": \"language of user message\"\n}\n\nFor example:\n\nuser message: \n'''\nEl sol brilla intensamente sobre el mar, creando destellos dorados en las olas. Un grupo de gaviotas vuela en círculo, aprovechando la cálida brisa.\n'''\n\n{\n \"language\": \"spanish\"\n}\n\n", "user_message_prompt_template": "\nUser message:\n'''\n$text\n'''\n", "default_language_return": "english" }, "glossaryConfig": null, "postProcessingConfig": [] }

Services and Configurations

The configuration consists of the following subparts the corresponding services description and configuration can be found via the following links

© 2024 Unique AG. All rights reserved. Privacy PolicyTerms of Service