aws-samples / aws-samples/amazon-nova-samples

Step 4 - Langchain Integration for Nova

Open
#19 1 comment 0 reactions 1 assignee Claimed by @jean-farmer View on GitHub
Dominant language
Jupyter Notebook
Stars
452
Forks
266
PR merge metrics
No merged PRs in 30d

Description

[/opt/conda/lib/python3.11/site-packages/langchain_aws/chat_models/__init__.py:1](https://5udncscb2tvnrl2.studio.us-east-1.sagemaker.aws/opt/conda/lib/python3.11/site-packages/langchain_aws/chat_models/__init__.py#line=0): LangChainDeprecationWarning: As of langchain-core 0.3.0, LangChain uses pydantic v2 internally. The langchain_core.pydantic_v1 module was a compatibility shim for pydantic v1, and should no longer be used. Please update the code to import from Pydantic directly.

For example, replace imports like: `from langchain_core.pydantic_v1 import BaseModel`
with: `from pydantic import BaseModel`
or the v1 compatibility namespace if you are working in a code base that has not been fully upgraded to pydantic 2 yet. from pydantic.v1 import BaseModel

from langchain_aws.chat_models.bedrock import BedrockChat, ChatBedrock
[/opt/conda/lib/python3.11/site-packages/pydantic/_internal/_config.py:345](https://5udncscb2tvnrl2.studio.us-east-1.sagemaker.aws/opt/conda/lib/python3.11/site-packages/pydantic/_internal/_config.py#line=344): UserWarning: Valid config keys have changed in V2:
* 'allow_population_by_field_name' has been renamed to 'populate_by_name'
warnings.warn(message, UserWarning)
[/opt/conda/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:777](https://5udncscb2tvnrl2.studio.us-east-1.sagemaker.aws/opt/conda/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py#line=776): UserWarning: Mixing V1 models and V2 models (or constructs, like `TypeAdapter`) is not supported. Please upgrade `RetrievalConfig` to V2.
warn(

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.