unitxt.system_prompts module¶
- class unitxt.system_prompts.EmptySystemPrompt(data_classification_policy: List[str] = None, _requirements_list: List[str] | Dict[str, str] = [], requirements: List[str] | Dict[str, str] = [], caching: bool = None, apply_to_streams: List[str] = None, dont_apply_to_streams: List[str] = None, skip_rendered_instance: bool = True)[source]¶
Bases:
SystemPrompt
- class unitxt.system_prompts.SystemPrompt(data_classification_policy: List[str] = None, _requirements_list: List[str] | Dict[str, str] = [], requirements: List[str] | Dict[str, str] = [], caching: bool = None, apply_to_streams: List[str] = None, dont_apply_to_streams: List[str] = None, skip_rendered_instance: bool = True)[source]¶
Bases:
InstanceOperator
The role of SystemPrompt is to add task-independent opening-text to every instance.
- class unitxt.system_prompts.TextualSystemPrompt(data_classification_policy: List[str] = None, _requirements_list: List[str] | Dict[str, str] = [], requirements: List[str] | Dict[str, str] = [], caching: bool = None, apply_to_streams: List[str] = None, dont_apply_to_streams: List[str] = None, skip_rendered_instance: bool = True, text: str = __required__)[source]¶
Bases:
SystemPrompt
Specifies the system prompt as a totally independent string.