diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-19 21:21:02 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-19 21:21:02 +0000 |
| commit | fa3052235903b535ccbc28223eb53c1f4ee534b8 (patch) | |
| tree | 719d75d25719cb49eb661a3d208b9908029a15d3 /apps | |
| parent | 8104d07fd2a9d603d85cc1f807e3d4b8a95656e2 (diff) | |
| download | karakeep-fa3052235903b535ccbc28223eb53c1f4ee534b8.tar.zst | |
fix(workers): Drop the restriction of the tags being lowercase and without spaces
Diffstat (limited to '')
| -rw-r--r-- | apps/workers/openaiWorker.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/workers/openaiWorker.ts b/apps/workers/openaiWorker.ts index f1ec0b10..9e6cd553 100644 --- a/apps/workers/openaiWorker.ts +++ b/apps/workers/openaiWorker.ts @@ -80,8 +80,8 @@ const TEXT_PROMPT_BASE = ` I'm building a read-it-later app and I need your help with automatic tagging. Please analyze the text after the sentence "CONTENT START HERE:" and suggest relevant tags that describe its key themes, topics, and main ideas. Aim for a variety of tags, including broad categories, specific keywords, and potential sub-genres. If it's a famous website -you may also include a tag for the website. Tags should be lowercases and don't contain spaces. If the tag is not generic enough, don't -include it. Aim for 3-5 tags. If there are no good tags, don't emit any. The content can include text for cookie consent and privacy policy, ignore those while tagging. +you may also include a tag for the website. If the tag is not generic enough, don't include it. Aim for 3-5 tags. If there are no good tags, don't emit any. +The content can include text for cookie consent and privacy policy, ignore those while tagging. You must respond in JSON with the key "tags" and the value is list of tags. CONTENT START HERE: `; |
