Initializer
This module contains functionality related to the the initializer
module for augmentation.bootstrap
.
Initializer
AugmentationInitializer
Bases: EmbeddingInitializer
Initializer for the augmentation process.
Extends the EmbeddingInitializer to set up the environment for augmentation tasks. This initializer is responsible for loading the required configuration and registering all necessary components with the dependency injection container.
Multiple components are used in the embedding, augmentation and evaluation processes. To avoid code duplication, this initializer is used to bind the components to the injector. It is intended to be subclassed by the specific initializers for each process.
Source code in src/augmentation/bootstrap/initializer.py
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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
|
__init__(configuration_class=AugmentationConfiguration, package_loader=AugmentationPackageLoader())
Initialize the AugmentationInitializer.
Parameters: |
|
---|
Source code in src/augmentation/bootstrap/initializer.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
|
AugmentationPackageLoader
Bases: EmbeddingPackageLoader
Package loader for augmentation components.
Extends the EmbeddingPackageLoader to load additional packages required for the augmentation process, including LLMs, retrievers, postprocessors, and chat engines.
Source code in src/augmentation/bootstrap/initializer.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
__init__(logger=LoggerConfiguration.get_logger(__name__))
Initialize the AugmentationPackageLoader.
Parameters: |
|
---|
Source code in src/augmentation/bootstrap/initializer.py
69 70 71 72 73 74 75 76 77 78 |
|
load_packages()
Load all required packages for augmentation.
Calls the parent class's load_packages method first to load embedding packages, then loads additional packages specific to augmentation.
Source code in src/augmentation/bootstrap/initializer.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|