Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

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:

  1. It takes the user entered text, and target language from the UI,

  2. infers the language of the user message,

  3. passes the text through any specified pre-processing steps defined in the configuration,

  4. translates the pre-processed text using an LLM,

  5. post-processes the translated text using the steps defined in the configuration

  6. Displays the final translated text on the right side of the UI.

image-20240930-060134.png

Required and Optional Modules

Required

Optional

Translation One To One

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 step translation_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"
  }
}

  • No labels