feat: improve prompt for keyword extraction

This commit is contained in:
max_richter 2023-09-08 14:04:36 +02:00
parent 217dce04fb
commit 297dab97cd

View File

@ -71,7 +71,7 @@ export async function createKeywords(type: string, description: string) {
{
"role": "system",
"content":
`you create some keywords to use in a recommendation system based on a ${type} description, create a range of keywords from very specific ones that describe the general vibe also include some that describe the genre`,
`you create some keywords that can be used in a recommendation system. The keywords are based on a ${type} description. Create a range of keywords from very specific ones that describe the general vibe. Also include some that describe the genre`,
},
{ "role": "user", "content": description.slice(0, 2000) },
{