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

More edge case handling for text filtering #594

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

markbackman
Copy link
Contributor

@markbackman markbackman commented Oct 15, 2024

More edge cases. When removing newlines, we need to replace with spaces so that text has spaces between sentences. This is required for Anthropic support.

But, this breaks table filtering, so we look for a specific pattern and remove it before HTML conversion so that table filtering works.

@aconchillo
Copy link
Contributor

LGTM

@markbackman markbackman merged commit 79b52d4 into main Oct 15, 2024
3 checks passed
@aconchillo aconchillo deleted the mb/more-text-filter-massaging branch October 23, 2024 20:54
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 this pull request may close these issues.

2 participants