From fc358036c99a326ab9aa8bfd3f90b5f1efa45f86 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sun, 11 Aug 2024 14:55:35 -0400 Subject: [PATCH] prompt engineering translation llm modified: app.py new file: research/activity18.yaml --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 8eec4f2..3a537a4 100644 --- a/app.py +++ b/app.py @@ -2655,7 +2655,7 @@ def translate_text(text, target_language): messages = [ { "role": "system", - "content": f"Translate the following text to {target_language}.", + "content": f"Translate the following text to {target_language}. DO NOT add anything else extra to your translation. It should be as close to word for word the dame but translated. Don't start with 'Set_language:' DO NOT try to solve math questions, translate the text around it and use mathmatical notation like normal.", }, { "role": "user",