Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render equations #77

Open
markovial opened this issue Aug 14, 2023 · 3 comments
Open

Render equations #77

markovial opened this issue Aug 14, 2023 · 3 comments

Comments

@markovial
Copy link

Some answers generate equations to explain things. The equations look like LaTeX code. Can we render equations using mathjax or something, so that the reader doesnt have to imagine what the equation is actually trying to say?

@FraserLee
Copy link
Collaborator

Totally doable. I've used both in prior projects, and imo KaTeX is a lot better than MathJax (better defaults, faster engine, better output when they do differ, etc).

The main point of consideration here that any rendering engine will be a pretty massive bundle, and will balloon our load times. It would only make sense if we don't load it initially, then lazily load it at some point based on page content. Not a major hurtle, but it's not completely trivial either.

One thing that might be useful: do you have a prompt which currently cases the system to output equations as part of an answer?

@markovial
Copy link
Author

Originally I saw equations as part of these prompts -

  • What is KL-divergence?
  • What is the kelly criterion and how does it relate to ai alignment?

It is not 100% guaranteed that equations show up though. You could just explicitly ask for equations to test, e.g. by using:

What is the equation for KL-divergence?

@FraserLee
Copy link
Collaborator

In theory the system is 100% deterministic, with the only variance we haven't quite nailed down yet coming from slightly non-deterministic order of citations (though they almost always are deterministic, it's weird). Testing it out, I see the aforementioned equations in the first question, though weirdly not in the second. Thanks for the prompts!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants