Find answers from the community

Updated 10 months ago

ImportError: cannot import name '

ImportError: cannot import name 'ArgPackComponent' from 'llama_index.core.query_pipeline.components' (/home2/asgtestdrive2023/Projects/CP/AI-Team/IDA_Document_Q_and_A/Dev/doc_qa_env/lib/python3.10/site-packages/llama_index/core/query_pipeline/components/init.py)

May I Know Why I am getting this erroe , whenever I am trying to get the node, the same error I am getting whenever response is getting run.
Below is code where it is starting.

ImportError Traceback (most recent call last)
Cell In[64], line 47
45 node_parser = UnstructuredElementNodeParser(llm=llm)
46 print('*%%'10)
---> 47 raw_nodes_ITC = node_parser.get_nodes_from_documents(ITC_2023)
49 base_nodes_ITC, node_mappings_ITC = node_parser.get_base_nodes_and_mappings(raw_nodes_ITC)
a
P
4 comments
I believe you're on v0.10.x. And if so, please do ensure that you're using a fresh (brand new) virtual env. Otherwise, we've already seen a host of import issues โ€” any lingering installs of llama-index v0.9.xx are sure to wreak havoc.
Thanks I will create a new one and try.
Thanks -- please do keep us posted ๐Ÿ™‚
Thanks for quick support๐Ÿ™‚
Add a reply
Sign up and join the conversation on Discord