Skip to content

Amazon Bedrock Workshop - ModuleNotFoundError: No module named 'langchain_aws' #289

@gideonsergei

Description

@gideonsergei

To Reproduce
Steps to reproduce the behavior (or some version of this):

  1. Go to 04_entity_extraction.ipynb
  2. Cell
    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions