nomic-ai / gpt4all

GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
https://nomic.ai/gpt4all
MIT License
69.01k stars 7.57k forks source link

[Feature] Translate a large document with GPT4All #2742

Open starinspace opened 1 month ago

starinspace commented 1 month ago

Feature Request

File/Book translator, for example, I have a book in a epub or txt-file in English and want it in Swedish.

cebtenzzre commented 1 month ago

To me this seems completely out of scope for GPT4All—everything the app currently does is chat-based. Why not use Google Translate for documents?

starinspace commented 1 month ago

To me this seems completely out of scope for GPT4All—everything the app currently does is chat-based. Why not use Google Translate for documents?

Thank you for your suggestion. However, I have found that Google Translate often provides inaccurate translations, particularly between Icelandic and Swedish. My experience has shown that the accuracy can be as low as 20%, with frequent errors in names and other specific terms. In contrast, when I tested a small portion using GPT4All (latest LLaMA model), the accuracy was over 95%. Not only does GPT4All provide more accurate translations, but it also produces text with a more natural flow. This capability is rare and demonstrates significant potential for translations that other tools cannot achieve. Thus, leveraging GPT4All for this purpose would greatly enhance the quality and reliability of the translations.

cebtenzzre commented 1 month ago

I suppose that's a compelling enough case. I can imagine how this would work under the hood—you don't need a lot of context to translate text with an LLM, so GPT4All would have to accept a document as input and then translate it piece by piece.