[GH-ISSUE #1694] Tag generation - include existing tags in the prompt #1057

Closed
opened 2026-03-02 11:54:42 +03:00 by kerem · 3 comments
Owner

Originally created by @whiteonion on GitHub (Jul 2, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1694

Describe the feature you'd like

Karakeep is amaying ❤️ Love it, and thank you.

Now, here is an idea. When it generates TAGS it often makes duplicates. Why? well AI doesnt know if there are already existing tags that might work.

Lets have an option to include existing tags in the AI prompt, and ask it to - always also include existing tags if they match the content. So the AI should evaluate if , in addition to the tags it generated by itself, some of the already existing tags could also be applied (might even be a two step process with 2 prompts, if 1 prompt doesnt work well / confuses the model)

BEHAVIOUR

  • Hey AI, make tags

-> Okay boss, here are some tags for you

  • Great, here are theese tags, see if they should be included also

-> Okay boss, here, theese ones match the content too

(or just do it in one prompt, if that works and doesnt confuse the AI)

Describe the benefits this would bring to existing Karakeep users

No duplicated tags - also if something is a movie - every movie will have the tag movie (now sometimes its a hit and miss..)

Can the goal of this request already be achieved via other means?

no

(.. sort of if you do it manually but thats beside the point)

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

Additional context

No response

Originally created by @whiteonion on GitHub (Jul 2, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1694 ### Describe the feature you'd like Karakeep is amaying ❤️ Love it, and thank you. Now, here is an idea. When it generates TAGS it often makes duplicates. Why? well AI doesnt know if there are already existing tags that might work. Lets have an option to include existing tags in the AI prompt, and ask it to - always also include existing tags if they match the content. So the AI should evaluate if , in addition to the tags it generated by itself, some of the already existing tags could also be applied (might even be a two step process with 2 prompts, if 1 prompt doesnt work well / confuses the model) BEHAVIOUR - Hey AI, make tags -> Okay boss, here are some tags for you - Great, here are theese tags, see if they should be included also -> Okay boss, here, theese ones match the content too (or just do it in one prompt, if that works and doesnt confuse the AI) ### Describe the benefits this would bring to existing Karakeep users No duplicated tags - also if something is a movie - every movie will have the tag movie (now sometimes its a hit and miss..) ### Can the goal of this request already be achieved via other means? no (.. sort of if you do it manually but thats beside the point) ### Have you searched for an existing open/closed issue? - [x] I have searched for existing issues and none cover my fundamental request ### Additional context _No response_
Author
Owner

@MohamedBassem commented on GitHub (Jul 19, 2025):

This feature actually already exists, it's a bit hidden because it makes the tagging more expensive. We support tag place holders in the prompt, check the info box under this section (https://docs.karakeep.app/configuration#inference-configs-for-automatic-tagging). We're planning to add proper support of this soon.

<!-- gh-comment-id:3092150730 --> @MohamedBassem commented on GitHub (Jul 19, 2025): This feature actually already exists, it's a bit hidden because it makes the tagging more expensive. We support tag place holders in the prompt, check the info box under this section (https://docs.karakeep.app/configuration#inference-configs-for-automatic-tagging). We're planning to add proper support of this soon.
Author
Owner

@whiteonion commented on GitHub (Jul 20, 2025):

oh great!

I added this to the prompt
' If suitable prefer to use some of theese tags in addition with new ones : $aiTags . If not create new ones '

Will test it now :)

BTW- thanks a lot for the app! its a DREAM

<!-- gh-comment-id:3094836535 --> @whiteonion commented on GitHub (Jul 20, 2025): oh great! I added this to the prompt ' If suitable prefer to use some of theese tags in addition with new ones : $aiTags . If not create new ones ' Will test it now :) BTW- thanks a lot for the app! its a DREAM
Author
Owner

@whiteonion commented on GitHub (Jul 22, 2025):

Unfortionatley the prompt
If suitable prefer to use some of theese tags in addition with new ones : $aiTags . If not create new ones

doesnt give good results for me... I'll keep iterating, if anyone has suggestions, please write

<!-- gh-comment-id:3104935699 --> @whiteonion commented on GitHub (Jul 22, 2025): Unfortionatley the prompt If suitable prefer to use some of theese tags in addition with new ones : $aiTags . If not create new ones doesnt give good results for me... I'll keep iterating, if anyone has suggestions, please write
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1057
No description provided.