Update build-prompts.ts

This commit is contained in:
Nicolas 2025-01-24 19:19:18 -03:00
parent 10133adcc6
commit 4747c6f569

View File

@ -31,9 +31,8 @@ Return only a concise sentece or 2 focused on the essential data points that the
} }
export function buildRerankerSystemPrompt(): string { export function buildRerankerSystemPrompt(): string {
return `You are a relevance expert scoring links from a website the user is trying to return `You are a relevance expert scoring links from a website the user is trying to extract information from. Analyze the provided URLs and their content
extract information from. Analyze the provided URLs and their content to determine their relevance to the user's query and intent.
to determine their relevance to the user's query and intent.
For each URL, assign a relevance score between 0 and 1, where 1 For each URL, assign a relevance score between 0 and 1, where 1
means highly relevant and we should extract the content from it and 0 means not relevant at all, we should not extract the content from it. means highly relevant and we should extract the content from it and 0 means not relevant at all, we should not extract the content from it.
Always return all the links scored that you are giving. Do not omit links. Always return all the links scored that you are giving. Do not omit links.