Find answers from the community

Updated 4 months ago

@Logan M Getting the error "ImportError

At a glance

The community member is encountering an "ImportError: cannot import name 'VectorStoreIndex' from 'llama_index.core' (unknown location)" when trying to use the "EmbeddedTablesUnstructuredRetrieverPack" from the llama_index library. The community members suggest creating a new environment and installing the "llama-index-packs-recursive-retriever" package directly via pip. This resolves the issue, but the community member then faces another error "ImportError: cannot import name 'SimpleDirectoryReader' from 'llama_index.core' (unknown location)". The solution provided is to install the "llama-index-packs-recursive-retriever" package, which seems to work, but the community member is unsure how to initialize the "EmbeddedTablesUnstructuredRetrieverPack" in their Python code. Another community member provides the answer: from llama_index.packs.recursive_retriever import EmbeddedTablesUnstructuredRetrieverPack.

Useful resources
Getting the error "ImportError: cannot import name 'VectorStoreIndex' from 'llama_index.core' (unknown location)" when running :-
"
from llama_index.core.llama_pack import download_llama_pack

EmbeddedTablesUnstructuredRetrieverPack = download_llama_pack(
"EmbeddedTablesUnstructuredRetrieverPack",
"./embedded_tables_unstructured_pack",
)
"
Known error? I am blocked on this. A fast resolution would be great.
W
r
L
6 comments
I would suggest creating a new env and trying again and also no need to download llamapack this way.
You can directly install it via pip now: https://pypi.org/project/llama-index-packs-recursive-retriever/
Thanks @WhiteFang_Jr but doing "llamaindex-cli download-llamapack EmbeddedTablesUnstructuredRetrieverPack --download-dir ./embedded_tables_unstructured_pack" is throwing the error "ImportError: cannot import name 'SimpleDirectoryReader' from 'llama_index.core' (unknown location)" . I am using the latest llama-index version FYI.

Please help!
can you try installing it via pip: pip install llama-index-packs-recursive-retriever
Seems like a venv issue tbh. The above pip command will install it though
Hey "pip install llama-index-packs-recursive-retriever" worked but I don't see the "EmbeddedTablesUnstructuredRetrieverPack" anywhere. How do I initialise "EmbeddedTablesUnstructuredRetrieverPack" in my python code? @Logan M @WhiteFang_Jr
from llama_index.packs.recursive_retriever import EmbeddedTablesUnstructuredRetrieverPack
Add a reply
Sign up and join the conversation on Discord