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
6.63k stars 240 forks source link

[Feature request] Force AI to use existing tags (instead of creating them) #111 #450

Closed kamtschatka closed 3 weeks ago

kamtschatka commented 1 month ago

PR for #111 added a $tags placeholder that will be replaced with all existing tags during inference This allows you to tweak the prompt in a way that it can actually reuse existing tags.

Currently the prompt preview simply shows [<TAGS_HERE>] instead of $tags (similar to the <CONTENT_HERE>), so the UI does not have to load all the tags and to keep the prompt preview small, but if needed, we can actually replace it.

ne0ark commented 1 month ago

Does this also refine the tag so that it applies to both URLs instead of creating two separate similar URLs?

kamtschatka commented 1 month ago

I don't understand what you mean exactly Do you want it to take the tags and find a more generalized tag that applies to the newly added bookmark and all bookmarks where this tag was already assigned? No, that does not happen and I would also not want to have that, as it would potentially override what you have already manually tagged.