Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Sep 5, 2024
1 parent 26ef742 commit 378c533
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/compute_horde_prompt_gen/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ def generate_prompt(self) -> str:
abilities = self.random_select(ABILITIES, num=4)
formats = self.random_select(FORMATS, num=5)

# prompt = (
# f"Generate a list of 5 concise prompts (questions or instruct tasks) that cover a wide range of skills and knowledge areas related to the themes of {themes}. "
# f"Each of these prompts should: "
# f"\n- have a complexity level of {complexity_level} out of 20 and a relevance level to the theme of {relevance_level} out of 20"
# f"\n- test various cognitive abilities ({abilities}) and require different types of writting formats ({formats})"
# f"\n- challenge the model's ability to understand and respond appropriately"
# f"\n- varyingly explore the {themes} in a manner that is consistent with their assigned complexity and relevance levels to the theme"
# f"\nOutput each prompt on a new line without any extra commentary or special characters."
# )
prompt = (
f"Generate a list of 5 concise prompts (questions or instruct tasks) that cover a wide range of skills and knowledge areas related to the themes of {themes}. "
f"Each of these prompts should: "
f"\n- have a complexity level of {complexity_level} out of 20 and a relevance level to the theme of {relevance_level} out of 20"
f"\n- test various cognitive abilities ({abilities}) and require different types of writting formats ({formats})"
f"\n- challenge the model's ability to understand and respond appropriately"
f"\n- varyingly explore the {themes} in a manner that is consistent with their assigned complexity and relevance levels to the theme"
f"\nOutput each prompt on a new line without any extra commentary or special characters."
f"Generate a list of 5 questions or instruct tasks related to the themes of {themes[:3]}. "
f"Output each prompt on a new line without any extra commentary or special characters."
)
return prompt

Expand Down

0 comments on commit 378c533

Please sign in to comment.