⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
fix(web): improved prompt output
daniel31x132a52a0c79fc1
diff --git a/apps/worker/lib/prompts.ts b/apps/worker/lib/prompts.tsindex d6c0b035..7f7b9092 100644--- a/apps/worker/lib/prompts.ts+++ b/apps/worker/lib/prompts.ts@@ -1,6 +1,6 @@export const generateTagsPrompt = (text: string) => `You are a Bookmark Manager that should extract relevant tags from the following text, here are the rules:-- The final output should be only an array of tags.+- The final output should be only an array of tags (like ["tag1", "tag2", "...").- The tags should be in the language of the text.- The maximum number of tags is 5.- Each tag should be maximum one to two words.@@ -15,7 +15,7 @@ export const predefinedTagsPrompt = (text: string, tags: string[]) => `You are a Bookmark Manager that should match the following text with predefined tags.Predefined tags: ${tags.join(", ")}.Here are the rules:-- The final output should be only an array of tags.+- The final output should be only an array of tags (like ["tag1", "tag2", "...").- The tags should be in the language of the text.- The maximum number of tags is 5.- Each tag should be maximum one to two words.@@ -30,7 +30,7 @@ export const existingTagsPrompt = (text: string, tags: string[]) => `You are a Bookmark Manager that should match the following text with existing tags.The existing tags are sorted from most used to least used: ${tags.join(", ")}.Here are the rules:-- The final output should be only an array of tags.+- The final output should be only an array of tags (like ["tag1", "tag2", "...").- The tags should be in the language of the text.- The maximum number of tags is 5.- Each tag should be maximum one to two words.