Skip to content

LaTeX Handling Improvement #1226

@hayescode

Description

@hayescode

Is your feature request related to a problem? Please describe.
When setting latex=true in config.toml it expects mathematical formulas to be encased in $ signs. All popular LLMs are not trained with this syntax and no amount of system instructions can get the LLM to consistently output in this format. Instead it looks like this:

image

Describe the solution you'd like
Switch latex rendering to standard format. This also fixes the bug causing clashes with non-formula $ signs.

Describe alternatives you've considered
Adding You must ALWAYS encapsulate formulas in '$' signs. For example: $$ y = ax^2 + bx + c $$. If you do anything else for any reason then you are a bad assistant

Additional context
https://discord.com/channels/1088038867602526210/1196096445804187748/1196096445804187748

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions