Skip to content

Swap context instruction

SwapContextInstructionSetting #

SwapContextInstructionSetting()

Bases: RapidataSetting

Swap the place of the context and instruction.

When this setting is added, the instruction will be shown on top and the context below. If collapsed, only the instruction will be shown.

By default, the context will be shown on top and the instruction below.

Supported task types: all.

Source code in src/rapidata/rapidata_client/settings/swap_context_instruction.py
def __init__(self):
    super().__init__(key="swap_question_and_prompt", value="true")