download_loader#

llama_index.readers.download_loader(loader_class: str, loader_hub_url: str = 'https://raw.githubusercontent.com/run-llama/llama-hub/main/llama_hub', refresh_cache: bool = False, use_gpt_index_import: bool = False, custom_path: Optional[str] = None) Type[BaseReader]#

Download a single loader from the Loader Hub.

Parameters
  • loader_class – The name of the loader class you want to download, such as SimpleWebPageReader.

  • refresh_cache – If true, the local cache will be skipped and the loader will be fetched directly from the remote repo.

  • use_gpt_index_import – If true, the loader files will use llama_index as the base dependency. By default (False), the loader files use llama_index as the base dependency. NOTE: this is a temporary workaround while we fully migrate all usages to llama_index.

  • custom_path – Custom dirpath to download loader into.

Returns

A Loader.