Find answers from the community

Updated 2 years ago

Anyone know how to resolve this error

At a glance

A community member is experiencing an ImportError when upgrading to the latest version of the llama_index library. The error is related to the RESPONSE_TEXT_TYPE import from the llama_index.indices.response.builder module.

In the comments, another community member suggests trying to bump the version to 0.5.4, as a recent PR may have patched the issue. However, the original poster indicates that they were able to resolve the issue by upgrading the langchain version, though they are unsure of the correlation.

The community members are still trying to diagnose the issue, as it seems to be affecting others as well.

Useful resources
Anyone know how to resolve this error:
Plain Text
ImportError: cannot import name 'RESPONSE_TEXT_TYPE' from partially initialized module 'llama_index.indices.response.builder'

Getting it since upgrading to latest. Seems to be coming from this import:
Plain Text
from llama_index.indices.composability import ComposableGraph
j
n
3 comments
hey @nova , sorry for the delay. could you try bumping version to 0.5.4 and let me know if issue persists? just landed this PR that got patched in https://github.com/jerryjliu/llama_index/pull/1001
@jerryjliu0 I actually ended up resolving it by upgrading langchain's version.
Not sure what the correlation was, but that worked. I appreciate the response though!
ok! trying to diagnose since this has been popping up for otehrs (and i haven't been able to repro :o)
Add a reply
Sign up and join the conversation on Discord