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
Describe the bug
Jan has issues with properly displaying mathematical content. When inline mathematical statements (enclosed within single $ delimiters) are used, the output duplicates the expression alongside the rendered LaTeX expression. Additionally, matrices enclosed within double $$ delimiters are not displayed correctly, with the application using small, fixed sized curved braces instead of the appropriate larger square brackets. Furthermore, rendering larger matrices, such as an n x n Jacobian (a matrix containing partials), is sometimes a hit or a miss, sometimes it fails to display the matrix completely.
Steps to reproduce
Launch the Jan application and load a model (e.g., Llama 3 8B Q6).
Ask it to print an inline mathematical expression (e.g., $E = mc^2$), it'll get duplicated next to the latex expression in the output.
Ask it to print a matrix enclosed within $$ delimiters (e.g., $$\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$$), it uses small, curved braces instead of larger square braces to enclose the matrix.
Expected behavior
The expected behavior can be observed by copying and pasting the above LaTeX syntax into Obsidian, a note-taking application with proper LaTeX rendering capabilities. In Obsidian, the inline mathematical statements should be rendered correctly without duplication, and the matrices should be displayed using the appropriate square brackets and formatting. The larger, more complex matrices should also be rendered correctly, displaying the content in a visually appealing and mathematically accurate manner.
Screenshots
Not required (The bug is reproducible).
Environment details
Operating System: Windows 11
Jan Version: 0.4.12
Processor: AMD Ryzen 5 3600
RAM: 16GB
GPU: NVIDIA RTX 2070 Super (8 GB DDR6 VRAM)
System prompt: You are a helpful assistant designed to assist reasoning in mathematical tasks & subjects.
The text was updated successfully, but these errors were encountered:
Describe the bug
Jan has issues with properly displaying mathematical content. When inline mathematical statements (enclosed within single
$
delimiters) are used, the output duplicates the expression alongside the rendered LaTeX expression. Additionally, matrices enclosed within double$$
delimiters are not displayed correctly, with the application using small, fixed sized curved braces instead of the appropriate larger square brackets. Furthermore, rendering larger matrices, such as an n x n Jacobian (a matrix containing partials), is sometimes a hit or a miss, sometimes it fails to display the matrix completely.Steps to reproduce
$E = mc^2$
), it'll get duplicated next to the latex expression in the output.$$
delimiters (e.g.,$$\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$$
), it uses small, curved braces instead of larger square braces to enclose the matrix.It renders the provided text as is.
Expected behavior
The expected behavior can be observed by copying and pasting the above LaTeX syntax into Obsidian, a note-taking application with proper LaTeX rendering capabilities. In Obsidian, the inline mathematical statements should be rendered correctly without duplication, and the matrices should be displayed using the appropriate square brackets and formatting. The larger, more complex matrices should also be rendered correctly, displaying the content in a visually appealing and mathematically accurate manner.
Screenshots
Environment details
The text was updated successfully, but these errors were encountered: