rerank with lower threshold + back to map if lenght = 0

This commit is contained in:
rafaelmmiller
2025-01-24 09:08:16 -03:00
parent 05d79a875a
commit 64d116540f
3 changed files with 63 additions and 40 deletions
+1 -1
View File
@@ -35,5 +35,5 @@ export function buildRerankerSystemPrompt(): string {
}
export function buildRerankerUserPrompt(searchQuery: string): string {
return `Given these URLs and their content, identify which ones are relevant to the user's extraction request: "${searchQuery}". Return an array of relevant links with their relevance scores (0-1). Higher scores should be given to URLs that directly address the user's extraction request. Be very mindful with the links you select, as if they are not that relevant it may affect the quality of the extraction. Only include URLs that have a relvancy score of 0.6+.`;
return `Given these URLs and their content, identify which ones are relevant to the user's extraction request: "${searchQuery}". Return an array of relevant links with their relevance scores (0-1). Higher scores should be given to URLs that directly address the user's extraction request. Be very mindful with the links you select, as if they are not that relevant it may affect the quality of the extraction.`;
}