VLog icon indicating copy to clipboard operation
VLog copied to clipboard

TypeError: cannot pickle '_thread.RLock' object

Open achun321 opened this issue 1 year ago • 0 comments

In gpt_model.py, the LlmReasoner() class tries to save the vector store by dumping it into a tmp file as so on lines 78-79: with open(pkl_path, "wb") as f: pickle.dump(vectorstore, f)

However, this leads to TypeError: cannot pickle '_thread.RLock' object. It seems that others have experienced this problem with newer versions of Langchain beyond version 0.0.350 but even downgrading to 0.0.0350 leads to import errors. Has anyone else encountered this / been able to solve this?

achun321 avatar May 14 '24 04:05 achun321