crybot/obsidian-flashcards-llm

Impossible to adjust default prompt

Closed this issue · 2 comments

Thank you for a plugin.
Recently, while I was testing it, I faced a couple of issues:

  1. It doesn't respect the language in which the text was written.
  2. I tried to make it write text in my native language, and the only way to do it was adding a direct prompt in the text, what doesn't look like a good way to go.
  3. Sometimes when you don't provide enough information, the underlying model generates random text with formulas, which isn't related to any data in vault.

I don't provide examples, because it seems like easy to reproduce, but let me know if you need any.

So we can fix these issues all-at-once: we can decouple users from hard-coded base prompt and allow its customization through plugin settings. Also, it will let users provide more context for flashcards generation.

I can provide you PR for it after this weekend, if you agree to let people customize base prompt.
What's your opinion?

That should be useful, had you implemented @ishmelev23 ?

Sorry for the late response, but this project has not been on my todo list for a while. I've added the option to provide additional instructions through a custom prompt in the settings. This should allow users to, for example, choose an other language for the generated flashcards. Thank you for your feedback.

Closing this for now, but feel free to open a new issue if you have other proposals.