Hi everyone,
I’m looking for examples of using the ControlFlow library with the Bedrock Claude model in Prefect. Any simple examples or guidance would be greatly appreciated!
Thanks!
m
Mattijs
01/31/2025, 9:21 AM
It somewhat depends on how you are authenticating with AWS but if your keys/tokens are setup correctly then the following would just work:
Copy code
from langchain_aws import ChatBedrock
cf.defaults.model = ChatBedrock(
model_id=MODEL_NAME,
model_kwargs=dict(temperature=0),
)
If it doesn't then have a look at the
langchain_aws
documentation for
ChatBedrock
as that is where the configuration happens. ControlFlow then simply accepts "any LangChain LLM class that supports chat-based APIs and tool calling" LangChain docs
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.