Skip to content

Commit 3a9e056

Browse files
committed
Refine AI tag prompt
1 parent 440aeeb commit 3a9e056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/photo/ai/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const getAiImageQuery = (
5959
case 'caption': return 'Write a pithy caption for this image in 6 words or less and no punctuation';
6060
case 'title-and-caption': return 'Write a compelling title and pithy caption of 8 words or less for this image, using the format Title: "title" Caption: "caption"';
6161
case 'tags':
62-
const tagQuery = 'Describe this image in three or less comma-separated unique keywords, with no adjective or adverbs, that are specific to this image';
62+
const tagQuery = 'Describe this image in 1-2 comma-separated unique keywords, with no adjective or adverbs. Avoid using general terms like "nature," "travel," "architecture," or "sky." Use terms that are highly specific to the image and not redundant.';
6363
const tags = existingTags.map(({ tag }) => tag).join(', ');
6464
return tags
6565
? `${tagQuery}. Consider using some of these existing tags, but only if they are relevant: ${tags}.`

0 commit comments

Comments
 (0)