unitxt.system_prompts module¶
- class unitxt.system_prompts.EmptySystemPrompt(apply_to_streams: List[str] = None, dont_apply_to_streams: List[str] = None, skip_rendered_instance: bool = True)¶
Bases:
SystemPrompt
- class unitxt.system_prompts.SystemPrompt(apply_to_streams: List[str] = None, dont_apply_to_streams: List[str] = None, skip_rendered_instance: bool = True)¶
Bases:
StreamInstanceOperatorThe role of SystemPrompt is to add task-independent opening-text to every instance.
- class unitxt.system_prompts.TextualSystemPrompt(apply_to_streams: ~typing.List[str] = None, dont_apply_to_streams: ~typing.List[str] = None, skip_rendered_instance: bool = True, text: str)¶
Bases:
SystemPromptSpecifies the system prompt as a totally independent string.