Open Hamiedamr opened 1 month ago
Hello, @Hamiedamr! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together!
I found a similar issue related to import errors in the LlamaIndex package, which might be relevant to your problem. The issue was about importing TrafilaturaWebReader
and other classes, and it was suggested to adjust the import statements due to a reorganization in the package [1].
For your specific issue, it seems like there might be a conflict between the versions of LlamaIndex and Langchain you are using. The error message indicates a problem with the LLMSingleActionAgent
class in Langchain, which might be related to compatibility issues between the two libraries.
To resolve this, you might want to check if there are any specific compatibility requirements between LlamaIndex version 0.9.48 and Langchain version 0.2.x. Unfortunately, I couldn't find specific compatibility information in the provided context, but ensuring both libraries are compatible with each other is a good starting point. Additionally, you might want to verify if the arbitrary_types_allowed
setting in your Pydantic configuration is correctly set, as the error suggests this might be related to the issue.
To continue talking to Dosu, mention @dosu.
@Hamiedamr v0.9.48 is very old, and v0.2 of langchain is quite new. There's no gauruntee that the two work together. And since it's an old version, it cannot be patched
My advice is either downgrade langchain (or untinstall it, you probably don't need it if you are already using llama-index?), or you can update llama-index (note that in v0.11, the service context was removed)
Bug Description
Confilct between langchain and llamaindex
Version
0.9.48
Steps to Reproduce
Relevant Logs/Tracbacks