You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this too. Unfortunately, the langchain_aws module ends up getting installed the JupyterSystems env folder path, which isn't a part of the sys.path. All you need to do to work around this is add the missing path to sys.path as part of your cell script.
To Reproduce
Steps to reproduce the behavior (or some version of this):
from langchain_aws import ChatBedrock
llm = ChatBedrock(
model_id="anthropic.claude-3-sonnet-20240229-v1:0",
model_kwargs={
"max_tokens": 200,
"temperature": 0, # Using 0 to get reproducible results
"stop_sequences": ["\n\nHuman:"]
}
)
3. See error
I'm running in SageMaker Studio Classic; I restarted the Kernel (data sci 3.0) but it didn't clear the error.
The text was updated successfully, but these errors were encountered: