Surface underlying error on bedrock integration instead of assuming connection issue #1672
Labels
contributions wanted!
Looking for external contributions
feature request
Ideas to improve an integration
P2
In the bedrock components, document_embeder.py#L219, generator.py#L236, there is an exception catch on run which then produces a message about it being a connection error regardless of the underlying issue.
This assumes it's always the connection issue and is misleading in cases there is another underlying issue (e.g. the token count being too high).
Desired behavior
It should either surface the underlying error directly or configure the message to be specific to possible / common issues.
In this sense, the ranker handling seems to be better:
ranker.py#L254
The text was updated successfully, but these errors were encountered: