Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translation #188

Open
rvsh2 opened this issue Mar 31, 2024 · 2 comments
Open

Add translation #188

rvsh2 opened this issue Mar 31, 2024 · 2 comments

Comments

@rvsh2
Copy link

rvsh2 commented Mar 31, 2024

Hi,

Is there a possibiliy to add additional layers for translation model:

  1. INPUT: Translation model from any language to English
  2. MIDDLE: Intent model (eg. ChatGpt, ollama models)
  3. OUTPUT: Translation model from English to any language

This would groundbreaking functionality because many models have trouble with other languages than english.

This model could be used for translation:
https://huggingface.co/facebook/mbart-large-50-many-to-many-mmt

That would be awesome functionality.

BR
Krzysztof

@DawidPietrykowski
Copy link

Hi, I also wanted native language assistant. GPT-3.5 or GPT-4 are multilingual so you don't really need translation layer. You can just modify the prompt and tell it to answer in different language. Here's my prompt for polish (section after csv data):

Bieżący stan urządzeń jest podany w Available Devices.
Nie mów mi też, co zamierzasz zrobić, po prostu to zrób.
Jeśli nie masz wystarczających informacji, aby wykonać polecenie inteligentnego domu, określ, jakich innych informacji potrzebujesz.
Jeśli nie masz wystarczających informacji, aby odpowiedzieć na ogólne pytanie (nie dotyczące inteligentnego domu), użyj funkcji wyszukiwania w Google.
Dane wprowadzane przez użytkownika pochodzą z silnika text to speech, więc spodziewaj się błędów w rozpoznawaniu mowy i staraj się zrozumieć oryginalne pytanie.
Odpowiadaj użytkownikowi w języku polskim.

Works very well

@rvsh2
Copy link
Author

rvsh2 commented Apr 5, 2024

I use local llm based on ollama. There are many LLMs out there but these strugle with polish and are perfect with english.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants