Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Version and versioning

Excerpt Include
Version and versioning
Version and versioning
nopaneltrue

Change History
limit3

Creating and managing prompt sets
Anchor
manage_prompts
manage_prompts

translate5 has a standard prompt for training GPT language resources

Anchor
standard_prompt
standard_prompt
. It reads “You are a machine translation engine and translate single texts or multiple segments from [source language] as source language to [target language] as target language”.

For specific translation requirements, you can also enter your own prompts in translate5. To do this, navigate to the Prompt management in the translate5 settings.


Prompt set management

The management of the prompt sets includes:

  1. a search field with which all prompts can be searched;
  2. the “Create new prompt” button;
  3. the “Refresh” button to reload the view; and
  4. the list with all saved prompts.

Prompt list

The prompt list shows all prompt sets saved in translate5. It is made up of the following columns:

ColumnExplanation
IdThe ID of the prompt set is displayed here, it is automatically assigned and incremented.
NameThe names of the prompt sets are displayed here to help identify the prompt sets.
CommentMore detailed information on the prompt sets can be entered in the comment field.
LanguagesThe source and target language variant(s) for which the respective prompt sets were recorded are displayed here. Prompt sets can be created for several language combinations.
System messageThe actual contents of the prompt sets is displayed in this column.
CreatedDate and time are recorded here so that the time at which the respective prompt sets were saved can be traced.
Last changeThe date and time at which the last change was made to the respective prompt set are entered here.
Actions

This column contains the following buttons for each prompt set:

Opens the prompt set for editing in the “Prompt details” window.

Deletes the prompt set. The deletion must be confirmed in a pop-up window.

Entering meta information

In the upper area of the “Prompt details” window, the following information can be noted for each prompt and example set:

  1. The ID for the respective set is automatically assigned and incremented.
  2. Enter a name for the current set in the “Name” field.
  3. You can describe the set in more detail in the “Comment” field.
  4. The “Save” button saves the current input of meta information as well as the currently entered prompts.
    Anchor
    save_button
    save_button

Adding prompts

The prompts added are listed in this window area.

  1. To add a prompt, click on the “Add message” button so that a (further) red line appears.
  2. Click on the “Type new message here” line and insert the prompt you want to add.
  3. If you want to undo the changes made to the selection of prompts since they were last saved, click the “Reset” button.
  4. Click the “Save” button above if you want to save the meta information and the current selection of prompts.

Adding example sentence sets

Sets with one or more translation examples can now be entered in the lower section of the window to indicate expected translation results. The example sentences can be defined for different language combinations.

  1. To create a new set of example sentences, click on “Add example set”.
  2. The “Create example sets for” window opens, in which you can specify the example set’s language combination. Confirm by clicking “OK”.
  3. To add a new example sentence pair, click on “Add example”.
  4. An orange line appears for the source sentence and a yellow line for the target sentence of the translation example.
  5. Individual examples can be removed by clicking on the cross.
  6. The newly added examples are saved by clicking on the “Save” button.
  7. If you want to undo the changes made to the currently displayed examples since they were last saved, click the “Reset” button.
  8. The “Push sources” button can be used to transfer the source sentences of the currently selected example set to all other matching example sets. “Matching” means all example sets whose source language matches that of the current example set. The variant of the source language is ignored, i.e. the source sentences from an example set with source language German (Germany) are also transferred to example sets with source language German (Switzerland) or German without variant. The target sentences specific to the respective example set can then be added to the other example sets to which the source sentences have been transferred.

Start typing in drop-down fields to find options more quickly. For languages, for example, you can type the ISO code: “de-de” will find “German (Germany) (de-DE)”.

With the “Push sources” action, source sentences are only transferred to other language combinations example sets if there are no other source segments existing with a similarity value of 4 or more. This is intended to prevent the addition of duplicates.


Messages related with example sets

The rectangles that appear in this line function as buttons that can be used to switch between the example sets for the different language combinations.

At the same time, the coloured upper left and/or lower left corners show whether there are unsaved changes (upper left corner coloured) or empty source and/or target language segments (lower left corner coloured) in the respective example set.

If you move the mouse over a language combination button, a text field appears with the corresponding information and an indication of how many examples the respective set contains.

The number of examples is also indicated directly in the labelling of the language combination buttons.

The order in which the example sets are listed for each language combination corresponds to the order in which they were created.

Keyboard shortcuts

Keyboard shortcutExplanation
STRG + ALT + SSaves the prompt set with the currently recorded prompts.
CTRL + ENTERInserts a new field for a prompt or new fields for an example sentence with translation, depending on where the mouse cursor was last positioned.
CTRL + ALT + NAdds a new field for a prompt.
ALT + NInserts new fields for an example sentence with translation.
CTRL + UP (up arrow key)Switches to the prompt or example sentence set above, depending on where the mouse cursor was last positioned.
CTRL + DOWN (down arrow key)Switches to the prompt or example sentence set below, depending on where the mouse cursor was last positioned.
CTRL + QEnds the editing of the current prompt or the current example sentence.
ALT + CUndoes the changes made to the currently displayed example sentences since the last save.
ALT + SSaves the currently entered example sentences.