Comments (3)
Yes, totally makes sense, exception handling is not the best at the moment and we can improve that. I have to check if there is a separate exception thrown by the API that we can surface here.
from langchain-aws.
@P1llus
All great ideas, there is plan to abstract out the client creation to a separate module with more options. Note that users can create their own client and pass in to the Bedrock classes, which supports all options available with boto3. Defaulting to a higher timeout might make sense for Opus, but not applicable universally. If there is a config that you have worked out which can work universally, open a PR with that change, and we can review it.
Agree that we need more examples and documentation, we welcome contributions from the community, and let us know if you need any help with this.
from langchain-aws.
@3coins Ah yeah that is true about the defaults, might be a bit overkill to change it like that.
I think something in-between would be if its possible for us to detect the underlying issue with some sort of logging.
As mentioned above, the only message received from Chat bedrock is that there was a timeout.
However it was actually hitting a throttle and 504's with a backoff.
There was no indication on that from the client perspective, and only the logs from the bedrock service itself would highlight it.
I am unsure if this is how boto3 logs it as well or if its the ChatBedrock class that don't surface information like that?
from langchain-aws.
Related Issues (20)
- [Question] RetryWithErrorOutputParser with_structured_output
- ChatBedrockConverse doesn't take into account boto3 setup_default_session. HOT 3
- ValueError: Model anthropic.claude-3-haiku-20240307-v1:0 does not currently support tool_choice.
- Provider ai21 model does not support chat.
- Tool calling does not work with LLama3.1 HOT 11
- Sagemaker TGI MESSAGES_API_ENABLED support
- Using SagemakerEndpoint together with RunnableWithMessageHistory with custom prompt template creates broken prompt
- Bedrock Knowledge Base Search Filter "in" broken HOT 2
- langchain-aws has not working with some of the Bedrock Cohere and Amazon model HOT 11
- ChatBedrockConverse and Llama 3.1 tool calling not working. Generates text instead of tool_call HOT 10
- Create agent with tools or Bind_tools does not implement the correct chain with Llama models in Bedrock
- ChatBedrock doesn't support streaming when Bedrock guardrails are applied HOT 2
- Cross-region support for Bedrock HOT 5
- with_structured_output not working for Llama 3.1 models + converse HOT 6
- Provider eu model does not support chat. HOT 2
- `ChatBedrockConverse` and `with_structured_output` not working with `claude-3-sonnet` HOT 1
- Regression after upgrading to langchain-aws==0.1.17 HOT 2
- Bedrock Inference Model IDs are out of support.
- Support max_parallel_api_rate to call InvokeModel API parallelly to shorten the embedding time
- ValidationException: A conversation must alternate between user and assistant roles. Make sure the conversation alternates between user and assistant roles and try again.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain-aws.