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

Closed
opened 2026-03-02 11:58:28 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/450
Author: @kamtschatka
Created: 10/2/2024
Status: Closed

Base: mainHead: tags-placeholder


📝 Commits (1)

  • 9da7d48 added a $tags placeholder that will be replaced with all existing tags during inference

📊 Changes

2 files changed (+19 additions, -4 deletions)

View changed files

📝 apps/web/app/dashboard/settings/prompts/page.tsx (+2 -2)
📝 apps/workers/openaiWorker.ts (+17 -2)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/450 **Author:** [@kamtschatka](https://github.com/kamtschatka) **Created:** 10/2/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `tags-placeholder` --- ### 📝 Commits (1) - [`9da7d48`](https://github.com/karakeep-app/karakeep/commit/9da7d48016ed995c7f0f8ac7cd6a4fadf6239497) added a $tags placeholder that will be replaced with all existing tags during inference ### 📊 Changes **2 files changed** (+19 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/app/dashboard/settings/prompts/page.tsx` (+2 -2) 📝 `apps/workers/openaiWorker.ts` (+17 -2) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:58:28 +03:00
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#1628
No description provided.