llmp.components.job_factory.TemplateJobCreator¶
- class llmp.components.job_factory.TemplateJobCreator[source]¶
Class for creating template jobs.
Methods
__init__()create_job(job_name[, instruction, ...])Create a new job from string template.
- __init__()¶
- create_job(job_name, instruction: str = None, input_template: str = None, output_template: str = None, example_pairs: list[structgenie.components.examples.base.Example] = None, config: dict = None, **kwargs) JobRecord[source]¶
Create a new job from string template.
Example
‘’’ # Instruction … # Input Book: {book} # Output Genre: <str, options=[‘Fiction’, ‘Non-Fiction’]> ‘’’