I want to summarize a peice of text into bullet points. But want control over the number of bullet points that are created. Is there a best practice in prompting to control this?
Example Output
text = """
The government has set a target of making the electricity grid net-zero by 2035, and the regulations released Thursday are meant to help guide the way.
Environment and Climate Change Canada estimates the national average household energy bill will increase by $35 to $61 per year if the regulations are adopted, but only two per cent of that increase will come as a result of the regulations.
Officials who provided a briefing to journalists on the condition they not be named say they expect increases to be offset as people move away from fossil fuels to heat their homes, cook food or power vehicles.
"""
bullet_points = """
1. Government aims for net-zero electricity grid by 2035.
2. New regulations released to guide the transition.
3. Estimated increase of $35 to $61 in annual household energy bills.
4. Only 2% of the increase attributed to the regulations.
5. Offsetting increases likely as people shift from fossil fuels.
"""
The government has set a target of making the electricity grid net-zero by 2035, and the regulations released Thursday are meant to help guide the way.
Environment and Climate Change Canada estimates the national average household energy bill will increase by $35 to $61 per year if the regulations are adopted, but only two per cent of that increase will come as a result of the regulations.
Officials who provided a briefing to journalists on the condition they not be named say they expect increases to be offset as people move away from fossil fuels to heat their homes, cook food or power vehicles.
Bullet Point Summary:
5)
Something like that would probably work.
What’s your prompt now? What model / settings are you using?
@elmstedt’s solution is better. The reverse counting worked back in early GPT-3 Davinci days, but a well-formed prompt will likely do the same with the newer models.