Closed 1M4nt0 closed 1 year ago
@1M4nt0 Thanks. I will have a look later.
@1M4nt0 At first I thought your change is related to multi-language support for the website. Then I realize that you used a lib to translate strings in the backend.
However, I tried that, you only need to give instruction to the LLM to achieve the same result. Localizing languages, like prompt, is not required.
For example, this used master branch
and only changed it-IT
for bing search and added the language instruction in prompt.
It can still control LLM response.
Example2: I used added the language instruction zh
(Chinese). Even for bing search = it-IT
, it can still output the result with Chinese successfully.
It is not magic but how the embedding work. Machine will translate prompt from whatever language into embedding, which preserve non-language-dependent semantic meaning. Therefore above example works.
Thus, I will not merge your later commits but only the self.sender NoneType issue. And I will make the bing/prompt language configurable (in config.yaml
and UI). It will save people's localization work while making the project simpler.
Thank you.
Great! I found the way more complicated. Your solution is much better.
Added multi-language support for localizing Bing searches and results from LLMService