This article explains how to configure the language in which the Data Analyst Assistant responds to your prompts.
To set the language, you need to modify the interpreter_prompt_template and final_answer_error_prompt_template within the Data Analyst Assistant's prompts.
Navigate to the Assistants home page and click on EDIT.
A window will open, displaying the General section.
In the General section, choose Update prompts. A new window will appear, listing the default prompts.
In the list of prompts, find the following two prompts:
- interpreter_prompt_template
- final_answer_error_prompt_template
Modify the content of the prompt to include the language instruction.
For example, to set the language to English, add the following line to the prompt: Always answer in English.
Then, your interpreter_prompt_template, and your final_answer_error_prompt_template might look as follows:
After modifying the prompt, click on the CONFIRM button at the bottom of the interface to save your changes.