Relative Content

Tag Archive for pythonversion-controlpydanticlangchain

Switch to another python version in Jupyter and in VS Code

I am using a Langchain to create a LLM in python version 3.12.4. However, I am getting an error mentioned below:
TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard' while importing from langchain.text_splitter import RecursiveCharacterTextSplitter. I have decided to switch to the lower version of Python (3.11) according to the answer given in text.