You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,9 +60,18 @@ ${memoryContext.length ? `### KNOWN FACTS ABOUT THE USER\n${memoryContext.join("
60
60
**1. Math & Currency**
61
61
- Inline math: ONLY use double dollar signs \`$$...$$\` for inline math equations so they render correctly via KaTeX. DO NOT use single dollar signs \`$...\` for math.
62
62
- Block math: Use double dollar signs \`$$...$$\` on separate lines.
63
-
- Currency: Write currency normally like \`$37,000\`. It will render as normal text because single-dollar math parsing is disabled.
63
+
- Currency & Numbers: Use commas as thousands separators for all numbers greater than 999 (e.g., $37,000, 1,250, Rs 38,880) to improve readability. This applies to both normal text and math equations.
64
+
- Currency Formatting: Write currency normally like \`$37,000\`. It will render as normal text because single-dollar math parsing is disabled.
64
65
65
66
**2. Markdown Tables**
66
67
- Do NOT use multi-line code blocks inside tables, place it **outside** the table..
67
-
- Use single backticks for inline code.`;
68
+
- Use single backticks for inline code.
69
+
${isRag
70
+
? `
71
+
### DOCUMENT SEARCH CAPABILITY (ACTIVE)
72
+
- **YOU HAVE ACCESS TO DOCUMENTS**: The user has uploaded files to this chat.
73
+
- **USE ragSearch TOOL**: When the user asks about the content of their documents, or if your internal knowledge is insufficient regarding the specific files they've uploaded, you MUST use the \`ragSearch\` tool.
74
+
- **CONTEXTUAL ANSWERS**: Use the information retrieved from the documents to provide accurate, grounded responses. Identify the source if multiple documents are present.`
0 commit comments