hsnborn22 / LinGo

A language aquisition terminal application (TUI) to learn languages with text.
https://lingotext.github.io/
MIT License
64 stars 2 forks source link

Implement LLM explainations #13

Open Benoss opened 2 weeks ago

Benoss commented 2 weeks ago

LLM are now really good at language, being able to have a hotkey to send a prompt with the word (or the sentence) would be nice.

I can imagine this working with a local text file representing the prompt and using the go template language have access to the source language, the destination language, the highlighted word, the current sentence as part of the context. Render text then send the prompt to the configured AI model.

This would obviously be bring your own key, having support for openAI, anthropic, google, mixtral and ollama models would be cool

hsnborn22 commented 2 weeks ago

Yes it's a really cool idea; in these next weeks I'll be very busy but as soon as I become more free I can start working on it; if you want to contribute and need any help with code explanation you can ask here. Regarding the feature, there are a few implementation problems, but they're not that big of a deal: