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
59 60 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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
|
__init__(configuration_class=AugmentationConfiguration, package_loader=AugmentationPackageLoader())
Initialize the AugmentationInitializer.
Parameters: |
|
---|
Source code in src/augmentation/bootstrap/initializer.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
|
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
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 |
|
__init__(logger=LoggerConfiguration.get_logger(__name__))
Initialize the AugmentationPackageLoader.
Parameters: |
|
---|
Source code in src/augmentation/bootstrap/initializer.py
31 32 33 34 35 36 37 38 39 40 |
|
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
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|