Nvidia (Nim) embedding endpoints will raise an error if empty strings are passed to them. This PR adds checks to the document and text embedder components to prevent that.
Additionally improves error handling in the Nim backend by displaying the remote response in the error message.
Proposed Changes:
Nvidia (Nim) embedding endpoints will raise an error if empty strings are passed to them. This PR adds checks to the document and text embedder components to prevent that.
Additionally improves error handling in the Nim backend by displaying the remote response in the error message.
How did you test it?
Unit tests
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.