feat: optimize keyword creation query
This commit is contained in:
parent
6d5a3a1a0c
commit
04c3578d61
@ -85,11 +85,15 @@ export async function createKeywords(
|
||||
{
|
||||
"role": "system",
|
||||
"content":
|
||||
`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. ${
|
||||
`you create some keywords that can be used in a recommendation system. The keywords are based on a ${type} description or title. If you do not know the title, take into account the description aswell. Create a range of keywords from very specific ones that describe the general vibe. Also include some that describe the genre. ${
|
||||
title ? `The name of the ${type} is ${title}` : ""
|
||||
}`,
|
||||
},
|
||||
{ "role": "user", "content": description.slice(0, 2000) },
|
||||
{
|
||||
"role": "user",
|
||||
"content": `description:
|
||||
${description.slice(0, 2000)}`,
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "return a list of around 20 keywords seperated by commas",
|
||||
@ -122,3 +126,4 @@ export async function createTags(content: string) {
|
||||
|
||||
return extractListFromResponse(res).map((v) => v.replaceAll(" ", "-"));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user