Translator V2
Functionality
The translator v2 can be used to translate documents and plain text into a target language directly via the https://unique-ch.atlassian.net/wiki/pages/createpage.action?spaceKey=PUB&title=Chat%20Layout%20UI%3A%20Text%20and%20Document%20Translation%20%28BETA%29&linkCreation=true&fromPageId=1005879388
Configuration settings (technical)
Reference in Code: TranslatorV2
Tool Definition
The tool definition is not required, therefore
{}
Configuration
The default configuration
{
"glossaryConfig": {
"scope_id": null,
"filename": null,
"active": false
},
"textPostProcessingConfig": [],
"translatorPromptConfig": {
"systemPromptInstruction": "You are a helpful AI designed to to translate text to a specified language.\nDo it even if the target language is the same as the source language.\nMake sure the translated text contains the same amount of carriage returns '\\n' as the original text block.\nTry to keep the translated text as close to the original as possible and having approximately the same lenght.",
"inputPromptInstructionTemplate": "List of text blocks to be translated to ${language}:\n\n<INPUT>\n${input_block}\n</INPUT>",
"outputPromptInstructionTemplate": "<OUTPUT>\n${output_block}\n</OUTPUT>"
},
"translatorUserConfig": {
"languageModelName": "AZURE_GPT_4_0613",
"maxTokensPerTranlationRequest": 1000,
"maxTokenPerMinute": 40000,
"allowedInputLanguages": [
"Afrikaans", "Albanian", "Arabic", "Aragonese", "Armenian", "Azeri", "Bashkir", "Basque", "Belarusian", "Bengali", "Bislama", "Bosnian", "Breton",
"Bulgarian", "Burmese", "Catalan", "Chamorro", "Chechen", "Chinese", "Cornish", "Corsican", "Croatian", "Czech", "Danish", "Dutch",
"English", "Esperanto", "Estonian", "Ewe", "Faroese", "Fijian", "Finnish", "French", "Galician", "Georgian", "German", "Greek",
"Greenlandic", "Guaraní", "Haitian Creole", "Hausa", "Hebrew", "Hindi", "Hungarian", "Icelandic", "Ido", "Indonesian", "Interlingua", "Interlingue",
"Inuktitut", "Irish", "Italian", "Japanese", "Javanese", "Kannada", "Kazakh", "Khmer", "Korean", "Kurdish", "Kyrgyz", "Lao", "Latin",
"Latvian", "Limburgish", "Lingala", "Lithuanian", "Luxembourgish", "Macedonian", "Malagasy", "Malay", "Malayalam", "Maltese", "Manx", "Maori", "Marathi", "Marshallese","Mongolian", "Navajo", "Nepali", "Northern Sami", "Norwegian", "Norwegian Bokmål", "Norwegian Nynorsk", "Occitan", "Ojibwe", "Old Church Slavonic","Ossetian", "Pashto", "Persian", "Polish", "Portuguese", "Punjabi", "Quechua", "Romanian", "Romansch", "Russian", "Samoan", "Sanskrit","Sardinian","Scottish Gaelic", "Serbian", "Serbo-Croatian", "Sichuan Yi", "Sindhi", "Slovak", "Slovene", "Somali", "Spanish", "Sundanese", "Swahili",
"Swedish","Tagalog", "Tahitian", "Tajik", "Tamil", "Tatar", "Telugu", "Thai", "Tibetan", "Tongan", "Tswana",
"Turkish", "Turkmen", "Ukrainian", "Urdu", "Uyghur", "Uzbek", "Vietnamese", "Volapük", "Walloon", "Welsh", "West Frisian", "Yiddish", "Yoruba", "Zhuang", "Zulu"]
},
"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==================${input_text}",
"languageModelTranslation": "AZURE_GPT_4_0613",
"temperatureTranslation": 0.0,
"streamingActivated": true,
"tokenLimitTranslationText": 4000
}
}
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 Policy – Terms of Service