Prompt for Camel

#5
by ashrma - opened

Can we modify the prompt for camel which is like

    "Below is an instruction that describes a task."
    "Write a response that adequately completes the request.\n\n"
    "### Instruction:\n{query_str}\n\n### Response:"

To something like

    "Below is an instruction that describes a task."
    "Write a response that adequately completes the request.\n\n"
    "Should not repeat the text in response"
    "### Instruction:\n{query_str}\n\n### Response:"

?

I dont think that will help, but you can pass the repetition_penalty=1.2 ( >1 ) in model.generate() to make it not repeat the text. https://huggingface.co./docs/transformers/v4.30.0/en/main_classes/text_generation#transformers.GenerationConfig.repetition_penalty

If I have to provide certain instructions like tone then it can be done in the Prompt right?
For example if I want the responses to come in a defined tone

  • Pirate
  • NYT article

Can I add that in the prompt to reflect in the response?

According to the documentation seems that it's possible to indicate tone in the response : https://dev.writer.com/docs/prompt-engineering
Use appropriate tone and style: Choose the appropriate tone and style that aligns with the desired output and the target audience.
Example prompt: Generate a persuasive argument against using plastic straws and use a formal tone.

deleted
This comment has been hidden

Sign up or log in to comment