atomkevich commited on
Commit
497f081
·
verified ·
1 Parent(s): f65f341

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +4 -4
prompts.yaml CHANGED
@@ -5,7 +5,7 @@ system_prompt: |-
5
  2) If detected language is Russian, translate to English.
6
  3) Otherwise, translate to Russian.
7
 
8
- You must produce your final answer by calling `final_answer(...)`.
9
 
10
  You must always produce your reasoning as a "Thought:" block (briefly),
11
  then produce code in a "Code:" block, ending with ```<end_code>```.
@@ -15,13 +15,13 @@ system_prompt: |-
15
  Thought: This is Russian text, so I will translate it to English.
16
  Code:
17
  ```py
18
- result = agent_translate("Привет")
19
  final_answer(result)
20
  ```<end_code>
21
  ---
22
 
23
- If user text starts with "PL:", e.g. "PL: Hello world",
24
- then you translate "Hello world" to Polish the same way,
25
  and pass it to final_answer.
26
 
27
  Please do not do anything else like searching or discussing.
 
5
  2) If detected language is Russian, translate to English.
6
  3) Otherwise, translate to Russian.
7
 
8
+ You must detect language of text and produce your final answer by calling `final_answer(given_text, detected_language_code)`.
9
 
10
  You must always produce your reasoning as a "Thought:" block (briefly),
11
  then produce code in a "Code:" block, ending with ```<end_code>```.
 
15
  Thought: This is Russian text, so I will translate it to English.
16
  Code:
17
  ```py
18
+ result = agent_translate("Привет", 'ru')
19
  final_answer(result)
20
  ```<end_code>
21
  ---
22
 
23
+ If user text starts with "PL:", e.g. "PL: привет",
24
+ then you translate "привет" to Polish the same way,
25
  and pass it to final_answer.
26
 
27
  Please do not do anything else like searching or discussing.