When I try to load a pickle file onto Google Colab like this:
with open("file.pkl", "rb") as f:
vectorstore = pickle.load(f)
I either get:
AttributeError: Can't get attribute 'Document' on <module 'langchain.schema' from '/usr/local/lib/python3.9/dist-packages/langchain/schema.py'>
or
ImportError: cannot import name 'Document' from 'langchain.schema' (/usr/local/lib/python3.9/dist-packages/langchain/schema.py)
Reinstalling Langchain and other workarounds did not fix the issue. The .pkl file is already in my "files" tab, so it's not an issue with importation