unitxt.system_prompts module¶
- class unitxt.system_prompts.EmptySystemPrompt(__tags__: Dict[str, str] = {}, data_classification_policy: List[str] = None, caching: bool = None, 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(__tags__: Dict[str, str] = {}, data_classification_policy: List[str] = None, caching: bool = None, apply_to_streams: List[str] = None, dont_apply_to_streams: List[str] = None, skip_rendered_instance: bool = True)¶
Bases:
InstanceOperator
The role of SystemPrompt is to add task-independent opening-text to every instance.
- class unitxt.system_prompts.TextualSystemPrompt(__tags__: ~typing.Dict[str, str] = {}, data_classification_policy: ~typing.List[str] = None, caching: bool = None, apply_to_streams: ~typing.List[str] = None, dont_apply_to_streams: ~typing.List[str] = None, skip_rendered_instance: bool = True, text: str)¶
Bases:
SystemPrompt
Specifies the system prompt as a totally independent string.