[GH-ISSUE #3057] mathematical notation not fully rendered #1959

Closed
opened 2026-02-22 18:27:25 -05:00 by yindo · 2 comments
Owner

Originally created by @kaumidere on GitHub (Jan 29, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3057

hi again, apologies, but i am running into issues with the mathematical notation not being fully rendered when using deepseek r1-14b or qwen 2.5 (latest)

text often looks like this:

`Certainly! Let's use fully rendered mathematical notation:

(a) Drift Velocity

The Hall potential difference ( V_H ) is given by:
[ V_H = \frac{I B d}{n q v_d} ]

To find the drift velocity ( v_d ), we rearrange this equation:
[ v_d = `

is there a detailed way in which i can sort this out? besides that everything works fine and i think this could be a real asset for my phd research.

many thanks again.

Originally created by @kaumidere on GitHub (Jan 29, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3057 hi again, apologies, but i am running into issues with the mathematical notation not being fully rendered when using deepseek r1-14b or qwen 2.5 (latest) text often looks like this: `Certainly! Let's use fully rendered mathematical notation: ### (a) Drift Velocity The Hall potential difference \( V_H \) is given by: \[ V_H = \frac{I B d}{n q v_d} \] To find the drift velocity \( v_d \), we rearrange this equation: \[ v_d = \` is there a detailed way in which i can sort this out? besides that everything works fine and i think this could be a real asset for my phd research. many thanks again.
yindo closed this issue 2026-02-22 18:27:25 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jan 30, 2025):

[ V_H = \frac{I B d}{n q v_d} ] is almost valid LaTeX. It is missing the \[ ... \] notation that is required. Looking at the conversations from
https://github.com/Mintplex-Labs/anything-llm/issues/2875
https://github.com/Mintplex-Labs/anything-llm/issues/2769#issuecomment-2536588303
https://github.com/Mintplex-Labs/anything-llm/issues/2018#issuecomment-2289005011

The notable detail here is that the LaTeX is largely dependent on the LLM's ability to output a valid text. In that comment thread but also in Discord (there is a thread in help channel) and you can hammer out the details with a good system prompt.

We aren't a professional math-text rendering UI, it is a sub-subset of the markdown renderer we use, but that is the current recommendation until we can find something better for all-around markdown + latex and everything else renderer

@timothycarambat commented on GitHub (Jan 30, 2025): `[ V_H = \frac{I B d}{n q v_d} ]` is _almost_ valid LaTeX. It is missing the `\[ ... \]` notation that is required. Looking at the conversations from https://github.com/Mintplex-Labs/anything-llm/issues/2875 https://github.com/Mintplex-Labs/anything-llm/issues/2769#issuecomment-2536588303 https://github.com/Mintplex-Labs/anything-llm/issues/2018#issuecomment-2289005011 The notable detail here is that the LaTeX is _largely_ dependent on the LLM's ability to output a valid text. In that comment thread but also in Discord (there is a thread in help channel) and you can hammer out the details with a good system prompt. We aren't a professional math-text rendering UI, it is a sub-subset of the markdown renderer we use, but that is the current recommendation until we can find something better for all-around markdown + latex and everything else renderer
Author
Owner

@kaumidere commented on GitHub (Jan 30, 2025):

alright. thanks again for the referral

@kaumidere commented on GitHub (Jan 30, 2025): alright. thanks again for the referral
yindo changed title from mathematical notation not fully rendered to [GH-ISSUE #3057] mathematical notation not fully rendered 2026-06-05 14:43:40 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1959