from llama_index import GPTListIndex
from llama_index.indices.list.retrievers import ListIndexLLMRetriever
documents = SimpleDirectoryReader('./data').load_data()
index = GPTListIndex.from_documents(documents, service_context=service_context)
retriever = ListIndexLLMRetriever()
....
I try to import my python program with
python 3.8.1 and 3.11.0
pip install llama-index==0.5.6
pip install langchain==0.0.148
these versions are suggested in this github
https://github.com/langchain-ai/langchain/issues/4064
but all get the error message:
ModuleNotFoundError: No module named ‘llama_index.indices.list.retrievers’
Does anyone have any suggestions to solve it?
New contributor
chi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.