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

[REQUEST] - Reasoning Settings, other languages? #163

Closed
consecutiotemporum opened this issue Aug 31, 2024 · 4 comments
Closed

[REQUEST] - Reasoning Settings, other languages? #163

consecutiotemporum opened this issue Aug 31, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@consecutiotemporum
Copy link

Reference Issues

No response

Summary

Is there any way to include other languages among those available for Reasoning Settings?
What does the current list of languages depend on?
Thank you.

immagine

Basic Example

--

Drawbacks

--

Additional information

No response

@consecutiotemporum consecutiotemporum added the enhancement New feature or request label Aug 31, 2024
@taprosoft
Copy link
Collaborator

Adding more language is as simple as changing some config but you have to run kotaemon from source.

Go to kotaemon/libs/ktem/ktem/utils/lang.py

SUPPORTED_LANGUAGE_MAP = {"en": "English", "ja": "Japanese", "vi": "Vietnamese"}

Change the above list as you like.

Also, change this value in flowsettings.py

SETTINGS_REASONING{
    "lang": {
        "name": "Language",
        "value": "en",
        "choices": [("English", "en"), ("Japanese", "ja"), ("Vietnamese", "vi")],
        "component": "dropdown",
    },
}

Run the app again python app.py and that's it.

@consecutiotemporum
Copy link
Author

Go to kotaemon/libs/ktem/ktem/utils/lang.py

Thanks!

(As for "user install", the correct folder is: kotaemon-app\install_dir\env\Lib\site-packages\ktem\utils\lang.py)

@drorata
Copy link

drorata commented Oct 15, 2024

I'm trying to understand whether this will allow me to upload documents in other (natural) languages? Trying out the docker version and loading documents in German, I always got close to zero relevancy score.

@taprosoft
Copy link
Collaborator

@drorata should be no problems. Scores can be low but please check if LLM answer can satisfy your need. Make sure to check Use LLM relevant scoring in Retrieval settings to make it more reliable.

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

No branches or pull requests

3 participants