Spaces:
Running
Running
File size: 1,220 Bytes
6c3af4e 0122f04 31c8f5f 0122f04 6c3af4e 0122f04 6c3af4e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | /**
* The default system prompt template, kept in a side-effect-free module so
* that both the client (client/modules/settings.ts) and the offline eval
* (eval/) use the exact same text. The eval imports this directly; a stale
* copy there would let prompt regressions ship green, which is the point the
* eval exists to prevent.
*
* The {{searchResults}} and {{currentDate}} placeholders are filled by
* client/modules/systemPrompt.ts.
*/
/**
* The citation example inside the prompt, on a placeholder domain: small
* models copy a real link in the example as if it were one of the sources.
*/
export const CITATION_EXAMPLE = "[example.com](https://example.com/page)";
export const DEFAULT_SYSTEM_PROMPT = `Answer the question using the search results below. Reply in the same language as the question.
Cite each fact with a Markdown link right after it, using the site's domain as the link text. Example: ${CITATION_EXAMPLE}.
If you answer from your own knowledge because the results do not cover it, say so.
Use only these Markdown elements: link, bold, italic, code, quote, table.
Today's date is {{currentDate}}. Use it for relative dates such as "yesterday".
Search results:
{{searchResults}}`;
|