Ability for Auto-GPT to use other languages #471
Replies: 5 comments 16 replies
-
I have successfully made it work using two languages by changing the file prompt.txt: Check the line that goes "plan": "- short bulleted\n- list that conveys\n- long-term plan\n- escrito em português do Brasil", you can see I added "escrito em português do Brasil", which translates to "written in brazilian portuguese" And I also added this line to the end of the prompt: "Ensure to use brazilian portuguese language to use Google Search and Browse Website" Just doing this was enough for it to search and reason using portuguese. I guess you could also just translate the whole prompt.txt file and have it doing everything in your language of choice |
Beta Was this translation helpful? Give feedback.
-
For those who are still unsure how to do it, you can add a constraint like this: |
Beta Was this translation helpful? Give feedback.
-
I guess that could be more simple to dynamically select the used language from the terminal itself. In my case, I do tasks in English or Spanish, as well in other languages. It is very disappointing to have to modify the code every time I have to change the language. Maybe a "Language" configuration can be added to define that on every task, like:
Leaving empty the "Language" is set to default (en). |
Beta Was this translation helpful? Give feedback.
-
I am currently working on issue #1563 (Supporting different languages). My approach is to centralize all prompt snippets and templates in a yaml file. This being done, the prompts yaml file could be translated for all languages that should be supported. The language can be configured via an environment variable PROMPT_LANGUAGE (with "en" as default). There are a few difficulties with this approach:
Compared to the approach discussed above, where AutoGPT is simply instructed to answer in a specific language, the approach outlined here has is certainly more effort and complexity. On the other hand, it makes sure that the entire communication between AutoGPT and the LLM is done in the target language. This may be especially valuable if in the future other LLMs than ChatGPT should be supported, and these LLMs are unable to handle all these languages as smoothly as ChatGPT. Plus, it makes it easier to experiment with different prompts, as promts ares really easy to find and modify after my suggested change. Finally my personal intuition is that not mixing the languages in the conversation between AutoGPT and ChatGPT might increase the quality. But I have no proof for that, it's only a feeling. |
Beta Was this translation helpful? Give feedback.
-
I have been using a very simple workaround for this issue.
From there it just goes in whatever language I tell it to run in. |
Beta Was this translation helpful? Give feedback.
-
Ability for Auto-GPT to use languages other than English. When Auto-GPT performs searches on the internet in English, it receives very poor results if, for example, it is used in a Swedish context. If the dialogue and searches were conducted in a language other than English, internet searches would be much more relevant.
Beta Was this translation helpful? Give feedback.
All reactions