hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
2.28k stars 77 forks source link

Allow customizing the AI prompt #170

Open kamtschatka opened 1 month ago

kamtschatka commented 1 month ago

I just wanted to create a ticket for the short side discussion in the previous PR

The idea is to allow users to customize the AI prompt to change the behavior. The existing prompt is not so bad and it makes sense to have a good prompt shipped with Hoarder, but for tinkering it might be a good idea.

In the PR the suggestion was to enable adding additional information at the end of the prompt, maybe it would also make sense to have access to some placeholders like existing tags or existing list names.

jbvioix commented 2 weeks ago

It's a great idea. I've done some testing with Mistral (and I think it's generalizable to other LLMs) and it gives better results when the query is in the same language as the expected keywords.