# prompt_strategies.user_defined

`prompt_strategies.user_defined`

User Defined prompts with configuration from the YML config

## Classes

Name | Description
--- | ---
UserDefinedDatasetConfig | dataclass configuration representing a userdefined dataset type
UserDefinedPromptTokenizationStrategy | Prompt Tokenization Strategy for user defined prompts

### UserDefinedDatasetConfig

    prompt_strategies.user_defined.UserDefinedDatasetConfig(
        system_prompt='',
        field_system='system',
        field_instruction='instruction',
        field_input='input',
        field_output='output',
        format='{instruction} {input} ',
        no_input_format='{instruction} ',
        system_format='{system}',
    )

dataclass configuration representing a userdefined dataset type

### UserDefinedPromptTokenizationStrategy

    prompt_strategies.user_defined.UserDefinedPromptTokenizationStrategy(
        prompter,
        tokenizer,
        train_on_inputs=False,
        sequence_len=2048,
    )

Prompt Tokenization Strategy for user defined prompts