Motivation
This assistant is designed to provide a user-friendly and familiar interface for translating text from one language to the other without navigating through a chat interface.
Structure and Logic of Assistant
This is a standalone assistant. This assistant will only have one required module ie the Translation One To One and a custom UI interface /wiki/spaces/SD/pages/710836260
The assistant does the following actions:
It takes the user entered text, and target language from the UI,
infers the language of the user message,
passes the text through any specified pre-processing steps defined in the configuration,
translates the pre-processed text using an LLM,
post-processes the translated text using the steps defined in the configuration
Displays the final translated text on the right side of the UI.
Required and Optional Modules
Required | Optional |
---|---|
Example AI Assistant configuration
Download the provided TXT file and upload it into a new space as an AI Assistant configuration. This will create a Translation assistant.
The following parameters have to be adjusted if a translation glossary should be considered:
scopeIdTranslationGlossary
→ scope containing translation glossary (as glossary.txt file). Further, the value for the preprocessing steptranslation_glossary
has to be switched to true.
{ "TranslationConfig": { "preProcessing": [ { "name": "translation_glossary", "value": false } ], "postProcessing": [ { "name": "replace_sharp_s_with_ss", "value": true, "language": "German" }, { "name": "american_to_british", "value": true, "language": "English" } ], "streamingActivated": true, "customOutputTokenLimit": null, "temperatureTranslation": 0, "languageModelTranslation": "AZURE_GPT_4_0613", "scopeIdTranslationGlossary": "TBD", "fileNameTranslationGlossary": "glossary.txt", "languageModelLanguageDetection": "AZURE_GPT_4_0613" } }