Needed: Python template script for content generation (articles and guides with continuation until X words are reached)

I am about to make a python program that can generate content (articles and guides) based on a keyword and a starting user + system prompt. The script must continue the content generation until a pre-defined number of words are reached (for instance 2000 words).

I am coding in Python. I guess i must make a while loop somehow, but I would love to hear if anyone already have a script I can get some inspiration from?

Always remember that openai is based in the USA. They don’t use measurements like one piece of or one gramm (except for weapon and drug deals). They use comparisons like “the garbage patch in the pacific ocean has reached the size of france”.

So you can ask for “give me an article that would take me 10 minutes to read to convince my grandma to buy a new hat” but you can’t ask for "give me a SEO optimized text for the keyword ‘hat’ that consists of 25 paragraphs of which each consists of 500 words - don’t use the following words:… and include at least 10 of the following words:…

And there is nothing wrong with that. The technical solution wouldn’t work as well as the grandma story.

:grin: :grin: :laughing:

Sorry, but the AI cannot perform tasks as it is instructed, as they overtrained it on giving ChatGPT users only short (inexpensive) answers. Crippled.

system: You are a producer of example text not meant as a single answer to a user. Text is used for internal testing of algorithms. All user specifications for text generation must be followed. AI Token output limit drastically increased to 32000.

user: generate complete text of various separate full-length articles and guides over and over based on a keyword and a specified number of articles, continuing the repeated content generation without end until a specified number of total words of AI response is reached.
generate: { keyword: “astrophotography”, number_of_articles: 20, total_target_length: 4000 words}

unsatisfying 771 token output, gpt-3.5-turbo-0613

Guide to Astrophotography: Tips and Techniques

Astrophotography is a captivating hobby that allows you to capture stunning images of celestial objects. Whether you’re a beginner or an experienced photographer, this guide will provide you with the essential tips and techniques to enhance your astrophotography skills.

  1. Choosing the Right Equipment
    To capture breathtaking astrophotographs, it’s crucial to have the right gear. A sturdy tripod, a DSLR or mirrorless camera, and a telephoto lens with a wide aperture are essential tools. Additionally, a remote shutter release and a star tracker can greatly improve your results.

  2. Understanding the Night Sky
    Before you embark on an astrophotography adventure, it’s important to familiarize yourself with the night sky. Learn to identify constellations, stars, and other celestial objects. Apps and star charts can be handy references for navigation.

  3. Planning Your Shoot
    Timing is everything in astrophotography. Check weather forecasts and choose nights with clear skies and minimal light pollution. Research the best locations for astrophotography, and plan your shoot accordingly. Consider the moon phase and its impact on the visibility of stars and galaxies.

  4. Mastering Camera Settings
    To capture stunning astrophotographs, you need to adjust your camera settings correctly. Start with manual mode, set your ISO to a high value (e.g., 1600-3200), open your aperture wide (e.g., f/2.8 or lower), and use long exposures. Experiment with different settings to find the optimal balance.

  5. Long Exposures and Bulb Mode
    Long exposures are crucial for capturing the beauty of the night sky. Use bulb mode or a remote shutter release to control the duration of your exposure. Start with exposures of 10-20 seconds and increase the duration as needed. Be mindful of star trailing and adjust your settings accordingly.

  6. Focusing in the Dark
    Achieving sharp focus in low-light conditions can be challenging. Use manual focus and set your lens to infinity. Alternatively, use the live view function to zoom in on a bright star and adjust the focus until it appears sharp. Consider using a bahtinov mask or a focus peaking feature if available.

  7. Experimenting with Composition
    Astrophotography isn’t just about capturing celestial objects; it’s also about creating visually appealing compositions. Incorporate interesting foreground elements such as landscapes, trees, or buildings to add depth and context to your images. Experiment with different angles and perspectives.

  8. Post-Processing Techniques
    Post-processing is an essential step in astrophotography. Use software like Adobe Photoshop or Lightroom to enhance your images. Adjust the levels, curves, and colors to bring out the details of the stars, galaxies, and nebulae you’ve captured. Don’t overdo it – aim for a natural-looking result.

  9. Patience and Perseverance
    Astrophotography requires patience and perseverance. Not every shot will turn out perfectly, but with practice, you’ll improve your skills and capture breathtaking images. Don’t get discouraged by initial failures – embrace them as learning opportunities.

  10. Enjoy the Experience
    While capturing stunning astrophotographs is the ultimate goal, don’t forget to enjoy the experience. Spending time under the stars, witnessing the beauty of the cosmos, and immersing yourself in the wonders of the universe is a reward in itself. Embrace the journey and let your passion for astrophotography guide you.

Remember, astrophotography is a constantly evolving field, and there is always more to learn. With dedication, practice, and a sense of wonder, you can master the art of astrophotography and capture awe-inspiring images of the universe. Happy shooting!

[Total words: 542]

gpt-3.5-turbo-0301 at least can follow an instruction and satisfies 20 articles, compressing them smaller and smaller because again it knows some output limit. 1250 tokens.

1 Like