Sep '24 (edited) • LangChain
Pydantic error in 7_rag_conversational.py
Hey Everyone, Every time i run 7_rag_conversational.py file on my pc, It throws error as:
"""
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,
"""
I have updated pydantic, but The error persists.
After displaying all of these errors, the code begins to show results(prompt for asking questions).
Please Help me..
1
0 comments
Vikas Sirohi
1
Pydantic error in 7_rag_conversational.py
AI Developer Accelerator
skool.com/ai-developer-accelerator
Master AI & software development to build apps and unlock new income streams. Transform ideas into profits. 💡➕🤖➕👨‍💻🟰💰
Leaderboard (30-day)
Powered by