prompt engineering translation llm

modified:   app.py
	new file:   research/activity18.yaml
This commit is contained in:
Russell Ballestrini 2024-08-11 14:55:35 -04:00
parent 5c9ef230ae
commit fc358036c9

2
app.py
View file

@ -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",