open-webui
open-webui copied to clipboard
enh: configurable latex delimiters
Is your feature request related to a problem? Please describe.
OpenWebUI is able to render TeX markup when it's enclosed in double $
signs, such as $$y = f(x)$$
. I did my best but failed to explain that to Llama-3. It still uses single $
once in a while.
Describe the solution you'd like
It would be nice to have a way to configure the renderer, so that single $
entries would also be treated as TeX markup. Even better if $
quotes would be automatically treated and correctly rendered as an inline markup.
Describe alternatives you've considered
- Use ChatGPT... It just works.
- Invent a prompt that would prevent a model from using single-
$
styled formulas.
Additional context Sample output: https://openwebui.com/c/korvin/340ca756-a00b-4408-8acc-bc0c39fbb426
Note that some formulas are syntactically correct but not rendered properly due to single $
quotation.
It looks even worse in the UI: