Skip to content

Commit

Permalink
Update src/distilabel/tasks/text_generation/self_instruct.py
Browse files Browse the repository at this point in the history
Co-authored-by: Agus <[email protected]>
  • Loading branch information
ignacioct and plaguss authored Jan 18, 2024
1 parent d99be50 commit d08e9a8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/distilabel/tasks/text_generation/self_instruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ class SelfInstructTask(TextGenerationTask):
application_description: str = "AI assistant"
num_instructions: int = 5

criteria_for_query_generation: str = (
"Incorporate a diverse range of verbs, avoiding repetition. "
"Ensure queries are compatible with AI model's text generation functions and are limited to 1-2 sentences. "
"Design queries to be self-contained and standalone. "
"""Blend interrogative (e.g., "What is the significance of x?") and imperative (e.g., "Detail the process of x.") styles. """
"Incorporate a diverse range of verbs, avoiding repetition.\n"
"Ensure queries are compatible with AI model's text generation functions and are limited to 1-2 sentences.\n"
"Design queries to be self-contained and standalone.\n"
"""Blend interrogative (e.g., "What is the significance of x?") and imperative (e.g., "Detail the process of x.") styles.\n"""
)

__jinja2_template__: str = _SELF_INSTRUCT_TEMPLATE
Expand Down

0 comments on commit d08e9a8

Please sign in to comment.