Stable Diffusion Text Prompt

AI prompts are instructions that guide AI systems like chatbots, generative models, and other tools to produce a desired output. Well-crafted prompts are key for generating high-quality results.

Here are some best practices for writing effective AI prompts:

  • Be as specific as possible about what you want the AI to generate
  • Give clear instructions and set constraints
  • Provide context and background information
  • Use formatting techniques like headers, lists, and code blocks
  • Include examples to demonstrate the desired output

Writing and Content Creation

AI writing tools can generate all kinds of content from scratch or refine drafts. The key is crafting detailed prompts.

Blog post on the evolution of AI:

Write a 800-word blog post explaining the evolution of AI technology over the past decade. Use an enthusiastic tone aimed at a general audience. Structure the post with an introduction, body paragraphs on major advancements year-by-year, and a conclusion.

Editing prompt:

Proofread this draft blog post, fix any grammatical/spelling issues, improve the flow and organization, and ensure it is engaging to read: 

[insert blog post draft here]

Art and Image Generation

Creative AI tools can turn text prompts into stunning visuals. Prompts should describe styles, subjects, colors, etc.

Space landscape artwork:

Generate a painting depicting an astronaut floating in space near Saturn and its rings, with vibrant nebula clouds in the background. Use a photorealistic style with bright, saturated colors.

Photo colorization:

Colorize this black and white photo of the Eiffel Tower at sunset, using warm light and tones of orange, red and yellow:

[insert b&w photo here]

Coding

AI coders can generate, debug, and edit code based on prompts. Always include language info and be specific.

New function:

Write a Python function called factorial() that takes a number as input and returns the factorial value of that number. Include docstrings and input validation.

Debugging:

This Python code is supposed to calculate sales tax but is throwing an error. Please fix all bugs:

[insert buggy code here]

Research and Data Analysis

AI tools can help analyze data, create models, and generate insights. Tailor prompts to your data and goals.

Data analysis:

Perform an exploratory data analysis on this dataset of housing prices including visualizations for key attributes. Outline any data quality issues. Provide recommendations for creating a regression model.

[insert housing dataset here] 

Model building:

Use this labeled dataset of customer churn to create a classification model for predicting churn risk. Compare performance of logistic regression, random forest, and gradient boosting models using cross-validation.

[insert customer dataset here]

The key with any AI prompt is being as clear, detailed, and specific as possible about what you want the AI to generate. Provide plenty of context and examples. Use formatting techniques to structure your prompt. With practice, you’ll be able to create prompts that produce high-quality results for any use case.

Useful Resources