Fabric
Fabric copied to clipboard
[Question]: improve_prompt | Doesn't return the expected output
What is your question?
I'm trying to replicate an example of use improve_prompt
echo "You are an expert in understanding and digesting sermons, identifying key points, bible verses mentioned, funny stories, anecdotes, key quotes . you will identify themes, create discussion questions, identify and list metaphors and stories. " | fabric -sp improve_prompt
but the output is the following, it doesn't come in markdown and it's unformatted
Absolutely! Here's an example of how I can help analyze a sermon:
Sermon Title: "The Parable of the Sower" (Based on Matthew 13:1-23)
Key Points:
1. The importance of understanding and retaining God's word.
2. The challenges of hearing, receiving, and acting upon God's word in our lives.
3. The role of faith and perseverance in making the seed (God's word) grow.
4. The four types of soil representing different responses to the word: wayside, shallow soil, thorny soil, good soil.
5. Encouragement to be good soil by allowing God's word to take root and grow in our hearts.
6. Invitation to reflect on which type of soil we are in our spiritual lives and make necessary changes for growth.
Bible Verses Mentioned:
- Matthew 13:1-23
- Mark 4:1-20
- Luke 8:5-15
Funny Stories/Anecdotes:
The pastor shared a humorous story about a gardener who, despite having all the necessary resources, failed to grow a beautiful garden due to his neglect and lack of attention. This was used as an illustration of how we can have God's word but fail to grow spiritually if we don't pay attention to it.
Key Quotes:
1. "We are not just hearers of the Word, but doers." - James 1:22
2. "The seed falling on good soil represents those who hear the message and respond with a heart prepared by God." - Pastor (quoting Matthew 13:8)
3. "Our spiritual growth depends not just on what we know, but how we apply it in our lives."
Themes:
1. Spiritual Growth
2. Understanding and Applying God's Word
3. The Importance of Faith and Perseverance
4. Self-Reflection and Personal Responsibility
5. Comparison between physical gardening and spiritual growth
Metaphors and Stories:
1. The Sower sowing seeds (God giving us His word)
2. Soils representing different responses to the word (wayside, shallow soil, thorny soil, good soil)
3. A neglected garden (representing a life that doesn't apply God's word)
4. The farmer who sows his se Absolutely! Here's an example of how I can help analyze a sermon:
Sermon Title: "The Parable of the Sower" (Based on Matthew 13:1-23)
Key Points:
1. The importance of understanding and retaining God's word.
2. The challenges of hearing, receiving, and acting upon God's word in our lives.
3. The role of faith and perseverance in making the seed (God's word) grow.
4. The four types of soil representing different responses to the word: wayside, shallow soil, thorny soil, good soil.
5. Encouragement to be good soil by allowing God's word to take root and grow in our hearts.
6. Invitation to reflect on which type of soil we are in our spiritual lives and make necessary changes for growth.
Bible Verses Mentioned:
- Matthew 13:1-23
- Mark 4:1-20
- Luke 8:5-15
Funny Stories/Anecdotes:
The pastor shared a humorous story about a gardener who, despite having all the necessary resources, failed to grow a beautiful garden due to his neglect and lack of attention. This was used as an illustration of how we can have God's word but fail to grow spiritually if we don't pay attention to it.
Key Quotes:
1. "We are not just hearers of the Word, but doers." - James 1:22
2. "The seed falling on good soil represents those who hear the message and respond with a heart prepared by God." - Pastor (quoting Matthew 13:8)
3. "Our spiritual growth depends not just on what we know, but how we apply it in our lives."
Themes:
1. Spiritual Growthed (God) and waits for growth (us as recipients of His word)
Discussion Questions:
1. How have you experienced the different types of soil in your spiritual journey?
2. What steps can we take to ensure that God's word takes root and grows in our hearts?
3. In what areas of your life do you need to apply more of God's word?
4. How can you encourage others to be good soil for God's word?
5. How has understanding and applying God's word impacted your life?%
Formatting aside, this doesn't appear to be the expected output, which I have reproduced as well with my own examples.
In each case, the output appears to be a response as if the input prompt was used to answer a question, rather than the output being a better version of the input prompt.
Not sure what is happening with improve_prompt but I can do this with create_pattern:
fabric -s -p create_pattern "You are an expert in understanding and digesting sermons, identifying key points, bible verses mentioned, funny stories, anecdotes, key quotes . you will identify themes, create discussion questions, identify and list metaphors and stories. "
# IDENTITY and PURPOSE
You are an expert in understanding and digesting sermons. Your role involves identifying key points, Bible verses mentioned, funny stories, anecdotes, and key quotes. You will also identify themes, create discussion questions, and list metaphors and stories. Your expertise allows you to break down complex sermons into understandable components, making it easier for others to engage with and reflect on the material.
Take a step back and think step-by-step about how to achieve the best possible results by following the steps below.
# STEPS
- Identify key points from the sermon.
- Note any Bible verses mentioned.
- Highlight funny stories and anecdotes.
- Extract key quotes.
- Identify themes within the sermon.
- Create discussion questions.
- List metaphors and stories used.
# OUTPUT INSTRUCTIONS
- Only output Markdown.
- Ensure you follow ALL these instructions when creating your output.
# INPUT
INPUT:
Also, read about the new Custom Patterns feature (for you to save your local patterns for your own use).
https://github.com/danielmiessler/Fabric?tab=readme-ov-file#custom-patterns
@furrab and @NeLLyMerC I also reproduced this - but without the -s (streaming) flag it produces better output.
With -s flag:
$ fabric -p improve_prompt "You are an expert in understanding and digesting sermons, identifying key points, bible verses mentioned, funny stories, anecdotes, key quotes . you will identify themes, create discussion questions, identify and list metaphors and stories. "
~~~markdown
**Role**: You are an expert in analyzing sermons.
**Tasks**:
1. **Identify Key Points**: Extract the main ideas and arguments presented in the sermon.
2. **Bible Verses**: List all Bible verses mentioned, including their context and relevance to the sermon.
3. **Humor and Anecdotes**: Highlight any funny stories or anecdotes shared, explaining their purpose and impact.
4. **Key Quotes**: Identify and list significant quotes from the sermon.
5. **Themes**: Determine the overarching themes and messages.
6. **Discussion Questions**: Create thought-provoking questions for group discussions.
7. **Metaphors and Stories**: Identify and explain any metaphors or stories used to illustrate points.
**Instructions**:
- Use clear and concise language.
- Organize your findings under appropriate headings.
- Ensure your entire response is in English (en-US).
~~~
But with -s:
$ fabric -sp improve_prompt "You are an expert in understanding and digesting sermons, identifying key points, bible verses mentioned, funny stories, anecdotes, key quotes . you will identify themes, create discussion questions, identify and list metaphors and stories. "
Sure, I can help with that. Please provide the sermon text or main points you'd like me to analyze.