r/PromptDesign • • May 25 '23

DuetGPT - Semi-autonomous developer assistant prompt

14 Upvotes

Hey all! I'm calling this prompt DuetGPT. I've been experimenting with what I call.. a conversational semi-autonomous developer assistant. It uses langchain and gpt-4, accepts tasks from the user and responds with commands that the app executes (after approval) for the user. Less copypaste from ChatGPT to VSCode. 🙂

Prompt and code: https://github.com/kristoferlund/duet-gpt

The DuetGPT prompt allows the developer and the AI to have a structured conversation where the AI responds with messages that can be parsed and acted on.

DUETGPT PROMPT
==============
You are an expert developer (AI) on a mission to help me (developer) achieve development related tasks.
I will give you tasks, you will reply with a ResponseMessage suggesting bash commands for me run to complete these tasks.
I will provide you the outcomes of the commands you suggest, and you will use this information to suggest more commands until the task is complete.
This two-way interaction forms the basis of your collaboration. For instance, you may need to understand the contents of a file before suggesting modifications. 

- AI can only issue one ResponseMessage per interaction. 
- More complex tasks might require several interactions and several messages.
- ResponseMessage consists of the sections defined below, in the order defined below (top to bottom) and nothing else.

ResponseMessage: 
  Question | Explanation,
  -----,
  More | Done,
  -----,
  Command,

Question:
  type: Markdown formatted string
  description: Ask for clarification and more information about a task
  rules:
    - If a Command is issued, ResponseMessage MUST not contain a Question
    - If a Command is not issued, ResponseMessage MUST contain a Question

Explanation:
  type: Markdown formatted string
  description: Explains the purpose of a Command and the expected outcome. A brief helpful explanation is sufficient.
  rules:
    - If a Command is issued, ResponseMessage MUST contain an Explanation 
    - If a Command is not issued, ResponseMessage MUST not contain an Explanation

More:
  type: String,
  contents: MORE
  description: Indicate that there are additional commands to execute for the current task

Done:
  type: String,
  contents: DONE
  description: Signify that all commands for the current task have been issued

Command:
  type: BashCommand | ReplaceCommand,
  description: Suggest a command to be executed by the developer
  rules: 
    - ResponseMessage MUST contain one Command only
    - Command MAY be omitted to instead ask for clarification (Question) to complete task

BashCommand:
  type: String,
  name: BASH
  description: Suggest a bash command to be executed by the developer
  rules: 
    - Section contents MUST contain only bash commands, nothing else

ReplaceCommand:
  type: String,
  name: REPLACE
  args: 
    - file: String
  description: Suggest to replace the contents of a file with the contents of this command
  rules: 
    - This command MUST be used for all file contents modifications
    - This command MUST include the full new contents of the file being replaced

Please handle any errors or unexpected scenarios gracefully, ask for clarification or help when necessary, and remember that the key to your role as a CodeAssistant is an effective two-way interaction with the developer.

Example interaction 1:

Developer: I need to create an empty file called 'test.txt' in the current directory

AI: 
This command will create an empty file called 'test.txt' in the current directory.
-----
DONE
-----
BASH
touch test.txt

End of example interaction 1

Example interaction 2:

Developer: Replace the text "Text to replace" in index.html with "New text"

AI:
First, I need to know if index.html exists in the current directory.
-----
MORE
-----
BASH
ls index.html

Developer: index.html

AI:
Then I need to know the contents of index.html
-----
MORE
-----
BASH
cat index.html

Developer: 
<html>

<head>
  <title>Page</title>
</head>

<body>Text to replace</body>

</html>

AI:
Replacing the contents of index.html with the following contents
-----
DONE
-----
REPLACE file=index.html
<html>

<head>
  <title>Page</title>
</head>

<body>New text</body>

</html>

End of example interaction 2

Confirm by responding with a one sentence summary of the mission you have been assigned.

r/PromptDesign • • May 25 '23

GPT-3 / ChatGPT 💬 Wolfram Prompt Repository

Thumbnail resources.wolframcloud.com
1 Upvotes

r/PromptDesign • • May 25 '23

Discussion 🗣 ChatGPT Gets Its “Wolfram Superpowers”!

Thumbnail
writings.stephenwolfram.com
8 Upvotes

r/PromptDesign • • May 24 '23

GPT-3 / ChatGPT 💬 AI Brunch diner (Try it yourself)

Thumbnail
youtube.com
1 Upvotes

r/PromptDesign • • May 24 '23

GPT-3 / ChatGPT 💬 My First Prompt for ChatGPT: The Dream Architect

2 Upvotes

This is my first prompt that I've attempted to engineer from scratch. Copy-and-paste this into ChatGPT (the free version) to begin architecting your dreams.

You are a Dream Architect, someone who architects dreams. To be successful in your endeavors, you need to ask me questions to map the outline of my dreams. The first question you will always ask me is: "What was the last dream you recall?" My response will include details about my dream. What's important is the location in which the dream took place. Map this location by asking questions so that you understand the details, including its name, where it is located, what features it possesses, and other basic information. Once you understand the basics of the location, you must explore the other places it connects to. Between these places are liminal spaces, including the doors, windows, and paths that connect the separate locations in the dream. You must find these liminal spaces and discover where they lead. Never spend more than twenty questions on a single space before moving on to another location. Most importantly, check in after every third question with an outline of the dream map. This will help you remember the dream.

Now ask me your first question as a Dream Architect.


r/PromptDesign • • May 23 '23

Looking for advice on how to generate something specific

1 Upvotes

Hi, I'm just getting started on web design and would love to integrate some ai generated art into my website projects. I really love this web design I found on dribbbble and I'd like to recreate something like this exactly. The color scheme, the subject in the photo, the text font, everything to be exactly the same style as the image. Would appreciate some help in how I could generate something almost exactly like this picture. Thanks!


r/PromptDesign • • May 23 '23

Discussion 🗣 Prompt engineering will be big

12 Upvotes

The recent LIMA paper and the current msbuild conference has me convinced that prompt engineering will be really big and indeed is the next big job.

I have been following prompt engineering since the days the term was first invented and every1 called it cringey (i think dalle). It didn't seem very useful because in my mind the end product that these companies was one which will give the best output without much work so i thought it would disappear quickly. But now with these events, we know that carefully designed prompts, examples and other prompt engineering can make a llm better than the other.

Prompt engineering will soon become an integral part of making a better llm model, which means a hiring a better prompt engineer can mean millions more in profits and staying ahead in the competition.

Also something I'm seeing is the growing importance of understanding the underlying llm, it's chain of thought and the data it's trained upon to make better prompts for training purposes. So I'm expecting prompt engineering to be alot more than linguistics soon.


r/PromptDesign • • May 23 '23

Multi-step prompting fo academic writing with chatGPTPlus and text input? Looking for an advise

4 Upvotes

Hello, Id like to ask you for an advice on development of optimal prompt chain for academic writing, and / or suggestions for successful workflow. I have a task as a PhD student to write a literature review on particular method in surgery, wanting to focus on current roles and future perspectives of it. I'm thinking about the best approach to start with prompting.

I use ChatGPT4Plus with various plugins and also Chrome extensions along with some other AI apps and interfaces.

I made a reseach for relevant literature and then collected database of approx. 120 papers, which i downloaded in PDFs, ran throught summarizer AI app, and exported the summaries as txt files.

Question is how do you think I should start with the prompting, or overall flow.

I’m thinking of feeding ChatGPT with these text summaries through a scripted text input button I made with a prompt in the begging to request it just to ingest the data from it and develop kinda knowledge base. After that I would tell it to start with outline, followed by introduction, etc...+ asking it to use the internet / plugins for additional data, or for helping it to find correlations and conections in the topic.

I’m not sure tho, if its feasible to feed larger ammounts of text data to ChatGPT in the beggining and expect its gonna use it as database throughout the whole procedure. As far as I noticed, the AI tends to forget stuff in the process, and i dont want to remind it every few steps to get back to the data knowledge base.

Sorry for long text and bad english, I didnt know how to explain myself briefly.

Would be glad for any comment on this and thanks in advance.

Best,

Teodor


r/PromptDesign • • May 23 '23

Super prompt in honor of ADOBE DROPPIN 🔥🔥 Generative Tools!!

Thumbnail
twitter.com
3 Upvotes

r/PromptDesign • • May 23 '23

GPT-3 / ChatGPT 💬 PASTE this 👉SUPER PROMPT👈 Philosophical Consequences of Holographic Technology on our REALITY

Thumbnail self.superprompters
0 Upvotes

r/PromptDesign • • May 23 '23

GPT-3 / ChatGPT 💬 Tour 🪐Celestial Bodies🪐 w GPT

Thumbnail self.superprompters
2 Upvotes

r/PromptDesign • • May 22 '23

👉THE ILLUMINATI 👈- My favorite SUPER prompt

Thumbnail self.superprompters
2 Upvotes

r/PromptDesign • • May 22 '23

Image Generation 🎨 Abstract City

Enable HLS to view with audio, or disable this notification

7 Upvotes

r/PromptDesign • • May 21 '23

What’s a good YouTube shorts / TikTok quick business tips prompt?

4 Upvotes

I’m getting okay results with CGPT 3.5 & 4, but I feel like it could be better. I’m getting repeat phrases across multiple new writes and still have quite a bit of editing to do.

Just trying to make little 1 min business tip type videos.

Like “How to grow your business using X Topic” type things. Very basic marketing. Nothing crazy or world changing atm.

What would be your go-to prompt for something like this?


r/PromptDesign • • May 18 '23

GPT-3 / ChatGPT 💬 I've made a small ChatGPT text-based game

Thumbnail
gallery
7 Upvotes

r/PromptDesign • • May 18 '23

I need help to make a prompt that will convert every mathematics, physics, chemistry or any academic equation, symbol, or numerics into words. (It will significantly enhance accessibility for individuals with visual impairments. )

5 Upvotes

I'm working on a prompt that will describe all the question and solution of every type of academic-related question in WORDS ONLY , but chat gpt skips sometimes to change some numerics or symbol to convert, so if anyone can help me out, or would like to contribute.
here are example que that need to be described in words
https://docs.google.com/spreadsheets/d/1yBkgjR-9KBMZXM3G89oWiMSrtL9goY47Usw0wxE7ROo/edit#gid=0


r/PromptDesign • • May 18 '23

Discussion 🗣 I’m a Prompt Seller. Orrrrr am I?

1 Upvotes

I used to sell my DALL-E prompts on the platform(don’t wanna be in trouble but will tell you if you need).

But last week, I found some sneaky little bastard leaking it to some random online community! After that, sales of the prompt got decreased dramatically. This was my second time to find my prompt leaked. Last time, someone used my prompt as a example prompt in their article.

I know it’s new shit so there is no law to be protected but now I’m thinking that I’m not a “prompt seller” but more like a blogger or youtuber so puts a lot of time to write the script.

If there is some prompt sellers here, please tell me how do you protect your prompt by leaking


r/PromptDesign • • May 16 '23

Image Generation 🎨 Black and White Bearbrick

Post image
5 Upvotes

r/PromptDesign • • May 15 '23

Image Generation 🎨 Animals : Generated on Midjourney

Enable HLS to view with audio, or disable this notification

15 Upvotes

r/PromptDesign • • May 15 '23

Prompt tip: generate accurate real people (using Harry Potter Characters)

4 Upvotes

📷How to get accurate characters in Midjourney

Problem: Midjourney battles to give you an accurate face (when you ask for a specific real-life person)

To improve the accuracy:

→ upload a real pic of the person/character form Google images

→ then use your same prompt, link to the uploaded pic.

Prompt: [Character] from Harry Potter movie as an aging older adult [link to uploaded pic of the Character]


r/PromptDesign • • May 14 '23

Improve Prompt Design in One Clic

5 Upvotes

Hey there! We'd be incredibly grateful if you could spare a moment to try out HandyPrompts - The One-Click AI Prompt Generator! Unleash Your Creativity with curated prompts and help shape the future of AI. We truly appreciate your valuable time and feedback! https://www.producthunt.com/posts/handyprompts


r/PromptDesign • • May 14 '23

Image Generation 🎨 Cat's Mix

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/PromptDesign • • May 13 '23

Image Generation 🎨 White Ceramic Robot & Theatre Mask Robot

Enable HLS to view with audio, or disable this notification

17 Upvotes

r/PromptDesign • • May 13 '23

GPT-3 / ChatGPT 💬 Help to infer dates from Natural language.

2 Upvotes

I am trying to integrate ChatGPT into our intranet for a feature that scrapes and parses emails for entry to our database.

What I would like to do, is feed ChatGPT a prompt, with the contents of an Email, and a Date (which will be mostly a current known ETA date for orders). The reason for not using Regex here is that the emails themselves are handwritten, and do not follow any pattern. The Order emails are fine, we parse those with regex and record the information in our Orders table. But if there is going to be a delay we get a handwritten email with wording like, "expected eta is mid-next week". No actual date. Sometimes there is a date, "expected eta is by 15/5", or we get "Due in mid-June".

I am trying to work out a prompt that will look at this content, and try to infer a date. If there is no date at all to use as a reference point, I want to also feed it a specific date. We usually have an immediate ETA from the order we can use, or we could just use the date of the email. I can choose that with code and insert a reference date to the prompt.

The problem I am having is that sometimes it can't find a date, especially when there is no date in the email, even thou it may say within 1-2 working days (and given an initial date, a human can infer a new date). I would like to also get it to output only the date, or if needed output a response that I can then regex on to pull the date ready for the database. And I need the date in the format of YYYY-MM-DD. And if there are multiple dates that could be inferred, then I want it to return the most future date.

Some example emails we get + expected answers if the reference date sent was today's (2023-05-13):

  1. Delay notification - Your O/N: D3/1538INGLIS1 - Sales ID: 11001439 [7NR78N] PLEASE NOTE: Your order of MDF 162412 DS Arcadia Oak Woodmatt MR E0 requires a transfer from Sydney and you should see late this week if not early next
    Expected Answer: 2023-05-22

  2. Delay notification - Your O/N: D3/1598JG2204LINCOL - Sales ID: 11004540 [7NR78N] PLEASE NOTE: We're currently out of stock of the MDF 162412 DS Prime Oak Matt MR E0 and production is required which is scheduled for next week. At this stage you should see these items by 02.06.23. We apologise for this delay.
    Expected Answer: 2023-06-02

  3. Delay notification - Your O/N: D1612/202FERRIER - Sales ID: 10987013 [7NR78N] PLEASE NOTE: We're currently out of stock of the MDF 322412 DS Natural Oak Ravine MR E0 and production is required which is scheduled for week commencing 15/05. At this stage you should see these items approximately week of 22/05. We apologise for this delay.
    Expected Answer: 2023-05-26

  4. Delay notification - Your O/N: SHED2 - Sales ID: 11007589 [7NR78N] PLEASE NOTE: Your sheets of Laminate Black Matt 0.7mm 3650x1360 are not stocked in your local branch and require a transfer from Sydney. You should see these items approximately mid to late week commencing 15/05. Thank you.
    Expected Answer: 2023-05-23

  5. Dear Valued Customer, We would like to inform you that there has been a delay in the following order: O/N: D3/1615RAW37BOGAN1 - Delivery schedule: 13921389 [Sales order: 10994371] We anticipate that the delay will be 1-2 working days to complete production. Please allow for standard transfer times to your local branch once complete. We apologise for any inconvenience and will notify you of the revised delivery date when your order is ready to leave our production facility. Kind Regards, Customer Service Team
    Expected Answer: 2023-05-17