[GH-ISSUE #3568] [BUG]: Math equation is not rendered correctly #2304

Closed
opened 2026-02-22 18:29:05 -05:00 by yindo · 1 comment
Owner

Originally created by @ndtoan96 on GitHub (Mar 31, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3568

How are you running AnythingLLM?

Docker (local)

What happened?

I use gpt-4o model. I ask the question: "What is the Bernouli equation?".

I'm pretty sure the model answer correctly P + \frac{1}{2} \rho v^2 + \rho gh = \text{constant} because I open the Developer tool and see that text, but AnythingLLM does not render the \text{constant} part.

Are there known steps to reproduce?

  1. Configure AnythingLLM to use gpt-4o model.
  2. Ask "What is the Bernouli equation?"
Originally created by @ndtoan96 on GitHub (Mar 31, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3568 ### How are you running AnythingLLM? Docker (local) ### What happened? I use gpt-4o model. I ask the question: "What is the Bernouli equation?". I'm pretty sure the model answer correctly `P + \frac{1}{2} \rho v^2 + \rho gh = \text{constant}` because I open the Developer tool and see that text, but AnythingLLM does not render the `\text{constant}` part. ### Are there known steps to reproduce? 1. Configure AnythingLLM to use gpt-4o model. 2. Ask "What is the Bernouli equation?"
yindo added the possible bug label 2026-02-22 18:29:05 -05:00
yindo closed this issue 2026-02-22 18:29:05 -05:00
Author
Owner

@timothycarambat commented on GitHub (Mar 31, 2025):

You will need to click edit (the pencil icon) on the response. Our renderer supports both bracket and parenthetical citations as well as $ and $$ LaTex. That being said, it it ultimately the model ability when it comes to generating valid markdown or MathJax/LaText/etc - if you can post the raw markdown response, that can help trace what the exact gap is in the renderer.

That being said, it can be easily saved with a system prompt modification to output formulas in some specific format. o* can even get markdown wrong a lot.

@timothycarambat commented on GitHub (Mar 31, 2025): You will need to click edit (the pencil icon) on the response. Our renderer supports both bracket and parenthetical citations as well as `$` and `$$` LaTex. That being said, it it ultimately the model ability when it comes to generating valid markdown or MathJax/LaText/etc - if you can post the raw markdown response, that can help trace what the exact gap is in the renderer. That being said, it can be easily saved with a system prompt modification to output formulas in some specific format. `o*` can even get markdown wrong a lot.
yindo changed title from [BUG]: Math equation is not rendered correctly to [GH-ISSUE #3568] [BUG]: Math equation is not rendered correctly 2026-06-05 14:45:45 -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#2304