clairefro / obsidian-chat-cbt-plugin

AI-powered journaling plugin for your Obsidian notes, inspired by cognitive behavioral therapy
https://obsidian.md/plugins?search=chatcbt
MIT License
183 stars 12 forks source link

Different languages #14

Open screenfluentpro opened 6 months ago

screenfluentpro commented 6 months ago

Hey, great work! Please consider adding a language selection, as I would prefer to communicate in Polish in my case. Thanks!

clairefro commented 6 months ago

@screenfluentpro thanks! Have you tried chatting with it in Polish? If using OpenAI it may work. I've heard people have success with this in languages other than English, like Finnish.

You could also try this with Ollama. You have the option to bring your own installed model and configure it in the settings. Mistral might work, or a polish trained model like sdadas/polish-gpt2-xl from Hugging Face (I haven't tried this, nor do I speak Polish, so have no clue about the quality)

Hope this helps

clairefro commented 6 months ago

If you are talking about localizing the settings UI - that's a different story!

screenfluentpro commented 6 months ago

Nope, it replies in Polish that it can't communicate in Polish, and when I ignore it, then it switches to English.

clairefro commented 6 months ago

Thanks for sharing. In that case, the ability to use ChatCBT in Polish will require finding an LLM model that knows English and Polish, and meets the quality you seek. Models on Hugging Face can be downloaded for free and run with Ollama

clairefro commented 6 months ago

I'll also play around with system prompt, and see if telling it to reply in the users prompt language makes it better

screenfluentpro commented 6 months ago

I see, I'm not familiar with using local models. I have an old MacBook Pro Mid 2015, so I don't even know if that would be usable. Plus, I want to use a CBT assistant to focus on work, not procrastinate, so jumping into a new topic I don't need for my work would be exactly what I want to avoid haha. So, it would be cool to just have a dropdown selector to choose a language from.

BTW, I heard good things about Claude-3 Opus, so I would love to see the integration as well to see how it works.

clairefro commented 5 months ago

@screenfluentpro I tried talking to ChatCBT in Polish (via Google Translate) and it seems to be working out of the box with OpenAI (default model gpt-3.50-turbo)

image

Reverse translation indicates the responses are on the right track. Granted, I don't speak Polish so I have don't have a good idea about the quality.

Were you using a different model? I wonder why it started speaking English for you