nomic-ai / gpt4all

GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
https://nomic.ai/gpt4all
MIT License
69.01k stars 7.57k forks source link

[Feature] Recognize Mathematical Formulas in LocalDocs #2741

Open vanabel opened 1 month ago

vanabel commented 1 month ago

Description:

It appears that when using PDFs as LocalDocs for embedding, mathematical formulas are not recognized correctly. This issue may stem from technical challenges in processing math formulas similarly to regular text. Resolving this would enhance the accuracy and utility of LocalDocs that contain mathematical content.

Additionally, the output of mathematical formulas in responses seems not to be rendered using MathJax, resulting in poor visual quality. Implementing MathJax or a similar rendering tool could significantly improve the clarity and readability of mathematical expressions.

Suggested Improvements:

  1. Enhance the recognition of mathematical formulas in PDFs used as LocalDocs to ensure accurate embedding.
  2. Implement MathJax or an equivalent rendering tool to improve the visual quality of mathematical formula output in responses.