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

feat: add escaping_underscores option to markdown export #134

Closed
Vdaleke opened this issue Jan 27, 2025 · 0 comments · Fixed by #135
Closed

feat: add escaping_underscores option to markdown export #134

Vdaleke opened this issue Jan 27, 2025 · 0 comments · Fixed by #135

Comments

@Vdaleke
Copy link
Contributor

Vdaleke commented Jan 27, 2025

If you use docling to prepare documents for input to gpt models using RAG, which uses full-text-search or hybrid search, then you need to convert to unescaped markdown, since the keywords from the user's query may contain underscores and the required document chunks will not be found.

I suggest adding an option to export_to_markdown() which disable escaping when exporting to Markdown, and also using it with the False value when converting to text. The default value remains True.

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

Successfully merging a pull request may close this issue.

1 participant