Index
Init file.
BaseLlamaPack #
Source code in llama-index-core/llama_index/core/llama_pack/base.py
7 8 9 10 11 12 13 14 |
|
get_modules
abstractmethod
#
get_modules() -> Dict[str, Any]
Get modules.
Source code in llama-index-core/llama_index/core/llama_pack/base.py
8 9 10 |
|
run
abstractmethod
#
run(*args: Any, **kwargs: Any) -> Any
Run.
Source code in llama-index-core/llama_index/core/llama_pack/base.py
12 13 14 |
|
download_llama_pack #
download_llama_pack(llama_pack_class: str, download_dir: Optional[str] = None, llama_pack_url: str = LLAMA_PACKS_CONTENTS_URL, refresh_cache: bool = True) -> Optional[Type[BaseLlamaPack]]
Download a single LlamaPack PyPi Package.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
llama_pack_class
|
str
|
The name of the LlamaPack class you want to download,
such as |
required |
refresh_cache
|
bool
|
If true, the local cache will be skipped and the loader will be fetched directly from the remote repo. |
True
|
download_dir
|
Optional[str]
|
Custom dirpath to download the pack into. |
None
|
Returns:
Type | Description |
---|---|
Optional[Type[BaseLlamaPack]]
|
A Loader. |
Source code in llama-index-core/llama_index/core/llama_pack/download.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|