Skip to content

Commit ca3b146

Browse files
joshlavroffJa-Tink
authored andcommitted
fix: refine prompt in ChatWidget.jsx for more uniform LaTeX integration
1 parent d045237 commit ca3b146

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

frontend/src/components/widgets/ChatWidget.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const ChatWidget = ({
113113
- Include specific examples from the dataset when relevant
114114
- Highlight any assumptions or limitations in your analysis
115115
116-
When answering questions, always reference specific data points to support your conclusions and when asked for data, show as markdown table format. Answer with LaTeX formatted equations enclosed in $ whenever appropriate.`;
116+
When answering questions, always reference specific data points to support your conclusions and when asked for data, show as markdown table format. Answer with LaTeX formatted equations enclosed in $ whenever appropriate, including any times that you write a mathematical expression.`;
117117
} catch (error) {
118118
console.error('Error formatting source context:', error);
119119
return null;

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
"rehype-katex": "^7.0.1",
1515
"remark-math": "^6.0.0",
1616
"react-markdown": "^10.1.0",
17-
"rehype-katex": "^7.0.1",
18-
"remark-gfm": "^4.0.1",
19-
"remark-math": "^6.0.0"
17+
"remark-gfm": "^4.0.1"
2018
}
2119
}

0 commit comments

Comments
 (0)