[GH-ISSUE #4022] [BUG]: Proper formatting issue with equations #2555

Closed
opened 2026-02-22 18:30:13 -05:00 by yindo · 3 comments
Owner

Originally created by @anasshamoon12002 on GitHub (Jun 19, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4022

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

Hi there. I have tested gemma3:12b model by ollama for some mathematical explanation but the equation formatting seems off. I request you to kindly fix this.

Image

Are there known steps to reproduce?

No response

Originally created by @anasshamoon12002 on GitHub (Jun 19, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4022 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? Hi there. I have tested gemma3:12b model by ollama for some mathematical explanation but the equation formatting seems off. I request you to kindly fix this. <img width="997" alt="Image" src="https://github.com/user-attachments/assets/18e560d7-8ddd-4ec8-b781-d4687172f339" /> ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:30:13 -05:00
yindo closed this issue 2026-02-22 18:30:13 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jun 24, 2025):

https://github.com/Mintplex-Labs/anything-llm/issues/2018#issuecomment-2273973514
This is the model outputting poor formatting, which makes sense - it is 1B

@timothycarambat commented on GitHub (Jun 24, 2025): https://github.com/Mintplex-Labs/anything-llm/issues/2018#issuecomment-2273973514 This is the model outputting poor formatting, which makes sense - it is 1B
Author
Owner

@anasshamoon12002 commented on GitHub (Jun 24, 2025):

@timothycarambat , that's a 12B model. I have tried using the online version of same 12B model also, it properly formats the equation. The one that I use with anythingLLM doesn't format properly.

@anasshamoon12002 commented on GitHub (Jun 24, 2025): @timothycarambat , that's a 12B model. I have tried using the online version of same 12B model also, it properly formats the equation. The one that I use with anythingLLM doesn't format properly.
Author
Owner

@timothycarambat commented on GitHub (Jun 24, 2025):

Whoops, misread that model. Can you click on the "edit" icon and paste the exact raw formatting it applied. It is almost certainly not valid LaTeX - we support $ and [] notations

@timothycarambat commented on GitHub (Jun 24, 2025): Whoops, misread that model. Can you click on the "edit" icon and paste the exact raw formatting it applied. It is almost certainly not valid LaTeX - we support `$` and `[]` notations
yindo changed title from [BUG]: Proper formatting issue with equations to [GH-ISSUE #4022] [BUG]: Proper formatting issue with equations 2026-06-05 14:47:14 -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#2555