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

Filter out whitespace-only strings before embedding #384

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

edknv
Copy link
Collaborator

@edknv edknv commented Jan 28, 2025

Description

Embedding NIM services return errors if the input text is empty or all whitespace. This PR updates the content filtering logic to ensure strings with only whitespace are excluded from the embedding process.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@edknv edknv requested review from drobison00 and ChrisJar January 28, 2025 21:56
Copy link
Collaborator

@jdye64 jdye64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Sensible workaround for the current situation

@edknv edknv merged commit aaa8501 into NVIDIA:main Jan 29, 2025
3 of 4 checks passed
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.

3 participants