Skip to content

packages update Feb 2024#1

Open
IsmaelKP2 wants to merge 4 commits intomycloudtutorials:masterfrom
IsmaelKP2:master
Open

packages update Feb 2024#1
IsmaelKP2 wants to merge 4 commits intomycloudtutorials:masterfrom
IsmaelKP2:master

Conversation

@IsmaelKP2
Copy link

package requirements

langchain_community as the container would not run.
langchain-aws to remove deprecation message

/app/admin.py:23: LangChainDeprecationWarning: The class `BedrockEmbeddings` was deprecated in LangChain 0.2.11 and will be removed in 1.0. An updated version of the class exists in the :class:`~langchain-aws package and should be used instead. To use it run `pip install -U :class:`~langchain-aws` and import as `from :class:`~langchain_aws import BedrockEmbeddings``.
  bedrock_embeddings = BedrockEmbeddings(model_id="amazon.titan-embed-text-v2:0", client=bedrock_client)

addition

added REGION environment variable to the boto3 client as I was getting an error
run cmd to test becomes
docker run -e BUCKET_NAME=AWS_BUCKET_NAME -e REGION=AWS_REGION -v ~/.aws:/root/.aws -p 8083:8083 -it chat-with-pdf-admin

updates

updated model amazon.titan-embed-text-v1 to amazon.titan-embed-text-v2:0 as there I got an invalid id error

IsmaelKP2 added 4 commits February 24, 2025 13:59
replaced langchain_community.embeddings with langchain_aws to remove deprecation comment
updated bedrock model to v2 change
replaced langchain_community.embeddings with langchain_aws to remove deprecation comment
llm uses ChatBedrock instead of Bedrock
updated bedrock amazon.titan model to v2
updated claude to claude-3
environment variable update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant