If you merely intend to use the llama-pack, then the recommended route is via pip install:
pip install llama-index-packs-<name-of-pack>
For a list of our llama-packs Python packages, visit llamahub.ai.
On the other hand, if you wish to download a llama-pack and potentially custommize it,
you can download it as a template. There are a couple of ways to do so. First,
llama-packs can be downloaded as a template by using the llamaindex-cli
tool
that comes with llama-index
:
llamaindex-cli download-llamapack ZephyrQueryEnginePack --download-dir ./zephyr_pack
Or with the download_llama_pack
function directly (in this case, you must supply
a download directory):
from llama_index.core.llama_pack import download_llama_pack
# download and install dependencies
LlavaCompletionPack = download_llama_pack(
"LlavaCompletionPack", "./llava_pack" # ./llava_pack is the download dir
)