aws-samples / amazon-bedrock-workshop

This is a workshop designed for Amazon Bedrock a foundational model service.
https://catalog.us-east-1.prod.workshops.aws/workshops/a4bdb007-5600-4368-81c5-ff5b4154f518/en-US/20-intro
MIT No Attribution
1.38k stars 591 forks source link

02_Langchain-rag-retrieve-api-mistral-and-claude-v2: Replace deprecated langchain APIs #275

Open KarthikChandy opened 1 month ago

KarthikChandy commented 1 month ago

The existing APIs 'from langchain.llms.bedrock import Bedrock' and 'from langchain.retrievers.bedrock import AmazonKnowledgeBasesRetriever' are deprecated.

Description of changes: The existing APIs 'from langchain.llms.bedrock import Bedrock' and 'from langchain.retrievers.bedrock import AmazonKnowledgeBasesRetriever' are deprecated. The new alternatives are 'from langchain_aws import BedrockLLM' and from langchain_community.retrievers import AmazonKnowledgeBasesRetriever. More information: https://python.langchain.com/v0.2/docs/integrations/llms/bedrock/ and https://python.langchain.com/v0.2/docs/integrations/retrievers/bedrock/

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

review-notebook-app[bot] commented 3 weeks ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB