fix: improve prompting

This commit is contained in:
Han Xiao
2025-02-05 13:48:05 +08:00
parent 8630d607a2
commit 2306bd3a9e
3 changed files with 30 additions and 15 deletions

View File

@@ -14,9 +14,10 @@ const responseSchema = {
unique_queries: {
type: SchemaType.ARRAY,
items: {
type: SchemaType.STRING
type: SchemaType.STRING,
description: "Unique query that passed the deduplication process, must be less than 30 characters"
},
description: "Array of semantically unique queries from set A"
description: "Array of semantically unique queries"
}
},
required: ["think", "unique_queries"]

View File

@@ -16,9 +16,9 @@ const responseSchema = {
type: SchemaType.ARRAY,
items: {
type: SchemaType.STRING,
description: "Search query with integrated operators"
description: "Search query, must be less than 30 characters"
},
description: "Array of search queries with appropriate operators",
description: "Array of search queries, orthogonal to each other",
minItems: 1,
maxItems: 3
}