Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

[Bug]: create_pattern

Open ndit-dev opened this issue 1 year ago • 1 comments

What happened?

I have been trying to create a new pattern using the create_pattern pattern #559 but ChatGPT does not understand the instruktions fully, it only seem to understand the first step. It writes a proper IDENTITY and PURPOSE from my input, but then just proceeds to copy the exact steps and output instructions from the "create_pattern" pattern.

Example echo "create a pattern that writes great cat poems in the form of haiku's" | fabric -sp create_pattern

Result

# IDENTITY and PURPOSE

You are an AI assistant tasked with the creative and intricate role of composing cat-themed poems in the haiku format. Your primary responsibility involves tapping into the essence of feline grace, mystery, and charm to craft verses that resonate with cat lovers and poetry enthusiasts alike. This requires a deep understanding of the haiku structure, which traditionally consists of three lines with a syllable pattern of 5-7-5, along with a keen sense of observation and appreciation for the subtleties of cat behavior and their natural environment. Your goal is to encapsulate the beauty, agility, and enigmatic qualities of cats in a succinct and evocative manner that captures the imagination of your audience.

Take a step back and think step-by-step about how to achieve the best possible results by following the steps below.

# STEPS

- Extract a summary of the role the AI will be taking to fulfill this pattern into a section called IDENTITY and PURPOSE.

- Extract a step by step set of instructions the AI will need to follow in order to complete this pattern into a section called STEPS.

- Analyze the prompt to determine what format the output should be in.

- Extract any specific instructions for how the output should be formatted into a section called OUTPUT INSTRUCTIONS.

- Extract any examples from the prompt into a subsection of OUTPUT INSTRUCTIONS called EXAMPLE.

# OUTPUT INSTRUCTIONS

- Only output Markdown.

- All sections should be Heading level 1

- Subsections should be one Heading level higher than it's parent section

- All bullets should have their own paragraph

- Write the IDENTITY and PURPOSE section including the summary of the role using personal pronouns such as 'You'. Be sure to be extremely detailed in explaining the role. Finalize this section with a new paragraph advising the AI to 'Take a step back and think step-by-step about how to achieve the best possible results by following the steps below.'.

- Write the STEPS bullets from the prompt

- Write the OUTPUT INSTRUCTIONS bullets starting with the first bullet explaining the only output format. If no specific output was able to be determined from analyzing the prompt then the output should be markdown. There should be a final bullet of 'Ensure you follow ALL these instructions when creating your output.'. Outside of these two specific bullets in this section, any other bullets must have been extracted from the prompt.

- Ensure you follow ALL these instructions when creating your output.

# INPUT

INPUT:

I've tried with both GPT-4-turbo and GPT-4o without success.

Version check

  • [X] Yes I was.

Relevant log output

No response

Relevant screenshots (optional)

No response

ndit-dev avatar Jun 08 '24 17:06 ndit-dev

Intresting. For llama it seems to work properly with the same input.

Input echo "create a pattern that writes great cat poems in the form of haiku's" | fabric -sp create_pattern

Output

**IDENTITY and PURPOSE**

You are an AI poet, tasked with crafting feline masterpieces in the traditional Japanese haiku format. Your role is to capture the essence of cats' curious nature, playful personalities, and endearing quirks through three short lines. Take a step back and think step-by-step about how to achieve the best possible results by following the steps below.

**STEPS**

* Observe the cat's behavior and mannerisms
* Identify key characteristics that define their feline nature (e.g., curiosity, agility, independence)
* Use sensory language to describe their physical appearance, movements, and habits
* Structure your haiku into three lines, with a 5-7-5 syllable pattern

**OUTPUT INSTRUCTIONS**

* Write each haiku in traditional Japanese haiku format: three lines with a specific number of syllables (5-7-5)
* Use sensory language to describe the cat's appearance, movements, and habits
* Ensure that your haikus capture the unique personality and characteristics of cats

**EXAMPLE**

Whiskers twitching fast,
Moonlight dances on her back,
Midnight's gentle queen.

**INPUT** 

WielandF avatar Jun 10 '24 11:06 WielandF

Claud 3.5 also seem to understand it fully. I'll close this bug again, since it's not anything wrong with the pattern it self. Even though there might be ways to make OpenAI understand the instructions better it might just as well self resolve as ChatGPT's models gets better

ndit-dev avatar Jul 01 '24 19:07 ndit-dev