Bug Fixes
- Fixed a bug in
OpenAIDocumentEmbedder
andAzureOpenAIDocumentEmbedder
where if an OpenAI API error occurred mid-batch then the following embeddings would be paired with the wrong documents.
New Features
- Added a
raise_on_failure
boolean parameter toOpenAIDocumentEmbedder
andAzureOpenAIDocumentEmbedder
. If set toTrue
then the component will raise an exception when there is an error with the API request. It is set toFalse
by default so the previous behavior of logging an exception and continuing is still the default.