(feat/extract) URLs can now be optional in /extract (#1346)

* Nick: urls optional on extract

* Update index.ts
This commit is contained in:
Nicolas
2025-03-16 22:29:25 -04:00
committed by GitHub
parent 200de9e7e7
commit 20c93db43f
5 changed files with 58 additions and 13 deletions
@@ -105,3 +105,10 @@ export function buildBatchExtractSystemPrompt(
export function buildBatchExtractPrompt(prompt: string): string {
return `Today is: ${new Date().toISOString()}\n${prompt}`;
}
export function buildRephraseToSerpPrompt(prompt: string): string {
return `Rephrase the following prompt to be suitable for a search engine results page (SERP) query. Make sure the rephrased prompt is concise and focused on retrieving relevant search results:
Original Prompt: "${prompt}"`;
}