Open jaredmcqueen opened 3 months ago
@jaredmcqueen what elements are you getting that have no text?
A PageBreak
element will routinely have no text, but if you're seeing others or elements that contain only whitespace we'll want to fix those upstream.
Describe the bug bedrock
embed_documents
will raise an error if you pass it an element with empty text.Expected behavior bedrock embedding will skip over elements with empty data
Fix
This class method needs to add a check for an empty element.text field
to something like this: