nbonamy / witsy

Witsy: desktop AI assistant
https://witsyai.com
Apache License 2.0
37 stars 4 forks source link

Latex format #10

Open chllei opened 21 hours ago

chllei commented 21 hours ago

Thank you very much for developing such a useful desktop client!

While using it, I found that the current chat interface does not support LaTeX math formulas very well. I hope this can be improved. Thank you.

nbonamy commented 16 hours ago

Hi. Can you provide an example because Latex format is supposed to be supported:

image
chllei commented 15 hours ago

Currently, it is indeed possible to display some LaTeX formulas. Specifically, there are the following issues:

  1. The font in LaTeX formulas is not uniform, which makes the equations look a bit strange.

屏幕截图 2024-11-01 223423

  1. For other non-$ LaTeX formula representations, they cannot be parsed well. See the example in the following figure.

image

nbonamy commented 14 hours ago

What Ollama model were you using? Can you give me the equivalent prompt in English? Thanks!

chllei commented 3 hours ago

The model is Qwen2.5-14B-Instruct. The English version is as follows:

image

It can be seen that some of the formulas have not been rendered correctly.