Arg pack
基类: QueryComponent
Arg pack 组件。
将任意数量的 args 打包成列表。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
convert_fn
|
Callable | None
|
用于转换输出的函数。 |
无
|
源码位于 llama-index-core/llama_index/core/query_pipeline/components/argpacks.py
13 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 |
|
validate_component_inputs #
validate_component_inputs(input: Dict[str, Any]) -> Dict[str, Any]
验证组件输入。
源码位于 llama-index-core/llama_index/core/query_pipeline/components/argpacks.py
29 30 31 |
|
set_callback_manager #
set_callback_manager(callback_manager: Any) -> None
设置回调管理器。
源码位于 llama-index-core/llama_index/core/query_pipeline/components/argpacks.py
40 41 |
|
基类: QueryComponent
Kwarg pack 组件。
将任意数量的 kwargs 打包成字典。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
convert_fn
|
Callable | None
|
用于转换输出的函数。 |
无
|
源码位于 llama-index-core/llama_index/core/query_pipeline/components/argpacks.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
|
validate_component_inputs #
validate_component_inputs(input: Dict[str, Any]) -> Dict[str, Any]
验证组件输入。
源码位于 llama-index-core/llama_index/core/query_pipeline/components/argpacks.py
89 90 91 |
|
set_callback_manager #
set_callback_manager(callback_manager: Any) -> None
设置回调管理器。
源码位于 llama-index-core/llama_index/core/query_pipeline/components/argpacks.py
100 101 |
|