Find answers from the community

Updated 4 months ago

Hi I am getting this error while trying

At a glance

The community member is experiencing an error while trying to import the download_loader from the llama_index library. Other community members respond that download_loader and llama_hub have been deprecated in version 0.10.x of the library, and that the llama-hub loaders and tools can now be installed as PyPI packages. They provide a Migration Guide and a Package registry as references. Another community member requests a sample code example for using a web loader, and the response includes the steps to install the web loader and an example of how to import it.

Useful resources
Hi I am getting this error while trying to import download_loader -
ImportError: cannot import name 'download_loader' from 'llama_index' (unknown location)
how to solve this?
W
P
8 comments
Yes, download_loader and llama_hub have been deprecated from v0.10.x going forward.

All the llama-hub loaders and tools can now be installed as pypi package.
hey can you provide a sample code example of using a webloader?
Sure, let me write it up
First you'll need to install web loader using pip
pip install llama-index-readers-web

Then you can import it like this
from llama_index.readers.web import TrafilaturaWebReader
Make sure you have llama-index v0.10 installed correctly
thanks! working
Add a reply
Sign up and join the conversation on Discord