machinewrapped / gpt-subtrans

Open Source project using LLMs to translate SRT subtitles
Other
347 stars 40 forks source link

Intention retranslation in instruction.txt? #41

Closed chen-rn closed 1 year ago

chen-rn commented 1 year ago

I noticed that in instructions.txt, at the end, there is the following line

#######################
There was an issue with the previous translation. 

Please translate the subtitles again, paying careful attention to ensure that each line is translated separately, and that every line has a matching translation.

Do not merge lines together in the translation, it leads to incorrect timings and confusion for the reader.

is this intentionally left in there?

machinewrapped commented 1 year ago

Yes, any instructions after a line of ### are used as the prompt if the translation fails validation - the whole message chain is sent again + this prompt.

It was a quick & dirty solution that I haven't got around to replacing with something more structured yet, but it does the job!

chen-rn commented 1 year ago

Ohhh interesting! Gotcha gotcha!