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

Support for LaTeX typesetting #237

Open
gsleite opened this issue Jul 29, 2024 · 2 comments
Open

Support for LaTeX typesetting #237

gsleite opened this issue Jul 29, 2024 · 2 comments
Assignees
Labels
advice Information how to use/implement the component

Comments

@gsleite
Copy link

gsleite commented Jul 29, 2024

Hi,

Many LLMs/FMs provides content generation regarding math/technical models by using LaTeX.

There is a translator under MIT: https://latex.js.org/

I'm not sure how can I integrate this library on Deep-Chat, any tips?

Thanks!

@gsleite gsleite changed the title Support to LaTeX typesetting Support for LaTeX typesetting Jul 29, 2024
@OvidijusParsiunas
Copy link
Owner

Hi @gsleite.
Deep Chat uses remarkable to generate its content from text to markdown.

To replace the library that is used to parse the text content, you will have to fork/clone the project, run it locally (which is very easy to do if you use the following instructions) and change the code here.

You can also use the responseInterceptor to parse the response text into html markup. This can be done by reading the response text, processing it into html using the LaTeX library (I am not quite sure if this can be achieved) and returning html e.g. {html: response}. Similarly, you can also do this using the handler function.

Let me know if this helps. Thankyou!

@OvidijusParsiunas OvidijusParsiunas self-assigned this Jul 29, 2024
@OvidijusParsiunas OvidijusParsiunas added the advice Information how to use/implement the component label Jul 29, 2024
@gsleite
Copy link
Author

gsleite commented Jul 31, 2024

Hi @OvidijusParsiunas,

Thanks for the answer. I will try the responseInterceptor and update this thread in order to help others.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advice Information how to use/implement the component
Projects
None yet
Development

No branches or pull requests

2 participants