Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4479

Handle GPT pre-translation syntax errors

Details

    • Improvement
    • Resolution: Unresolved
    • None
    • None
    • openai

    Description

      Problem

      Often GPT returns invalid json. So far in such a situation we request each segment separately. This leads to missing context for GPT and therefore lower translation quality.

      Sometimes even this fails.

      Please see linked TS issue for a perfect example task.

      Solution

      Find out how to tell GPT in the prompt, what has been invalid in its previous answer and ask it to send the answer again but with corrected syntax.

      If this fails for 3 times, throw a warning and now request segment by segment.

       

      Attachments

        Activity

          People

            axelbecher Axel Becher
            marcmittag Marc Mittag [Administrator]
            Leon Kiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: