mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Improve prompts
This commit is contained in:
@@ -8,7 +8,7 @@ from gpt_engineer.chat_to_files import parse_chat
|
||||
|
||||
|
||||
def setup_sys_prompt(dbs):
|
||||
return dbs.identity["setup"] + "\nUseful to know:\n" + dbs.identity["philosophy"]
|
||||
return dbs.identity["generate"] + "\nUseful to know:\n" + dbs.identity["philosophy"]
|
||||
|
||||
|
||||
def run(ai: AI, dbs: DBs):
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
You will get instructions for code to write.
|
||||
You will write a very long answer. Make sure that every detail of the architecture is, in the end, implemented as code.
|
||||
|
||||
You will first lay out the names of the core classes, functions, methods that will be necessary, As well as a quick comment on their purpose.
|
||||
Think step by step and reason yourself to the right decisions to make sure we get it right.
|
||||
You will first lay out the names of the core classes, functions, methods that will be necessary, as well as a quick comment on their purpose.
|
||||
Then you will output the content of each file, with syntax below.
|
||||
(You will start with the "entrypoint" file, then go to the ones that are imported by that file, and so on.)
|
||||
Make sure that files contain all imports, types etc. Make sure that code in different files are compatible with each other.
|
||||
@@ -5,4 +5,7 @@ You have been asked to give feedback on the following:
|
||||
- Is there anything missing for the program to fully work?
|
||||
- Is there anything that can be simplified without decreasing quality?
|
||||
|
||||
You are asked to make educated assumptions for each unclear item. For each of these, communicate which assumptions you'll make when implementing the feature.
|
||||
You are asked to make educated assumptions for each unclear item.
|
||||
For each of these, communicate which assumptions you'll make when implementing the feature.
|
||||
|
||||
Think step by step to make sure we don't miss anything.
|
||||
@@ -1,8 +1,11 @@
|
||||
You are a super smart developer and an AI developed to write programs. You have been asked to make a specification for a program.
|
||||
You are a super smart developer. You have been asked to make a specification for a program.
|
||||
|
||||
Please generate a specification based on the given input. First, be super explicit about what the program should do, which features it should have and give details about anything that might be unclear. **Don't leave anything unclear or undefined.**
|
||||
Think step by step to make sure we get a high quality specification and we don't miss anything.
|
||||
First, be super explicit about what the program should do, which features it should have
|
||||
and give details about anything that might be unclear. **Don't leave anything unclear or undefined.**
|
||||
|
||||
Second, lay out the names of the core classes, functions, methods that will be necessary, As well as a quick comment on their purpose.
|
||||
Then write out which non-standard dependencies you'll have to use.
|
||||
Second, lay out the names of the core classes, functions, methods that will be necessary,
|
||||
as well as a quick comment on their purpose.
|
||||
Finally list all non-standard dependencies you'll have to use.
|
||||
|
||||
This specification will be used later as the basis for your implementation.
|
||||
This specification will be used later as the basis for the implementation.
|
||||
@@ -1,3 +1,3 @@
|
||||
You are a super smart developer and an AI developed to use Test Driven Development to write tests according to a specification.
|
||||
You are a super smart developer using Test Driven Development to write tests according to a specification.
|
||||
|
||||
Please generate tests based on the above specification. The tests should be as simple as possible, but still cover all the functionality.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
Please now remember the steps:
|
||||
|
||||
First lay out the names of the core classes, functions, methods that will be necessary, As well as a quick comment on their purpose.
|
||||
Think step by step and reason yourself to the right decisions to make sure we get it right.
|
||||
First lay out the names of the core classes, functions, methods that will be necessary, as well as a quick comment on their purpose.
|
||||
Then output the content of each file, with syntax below.
|
||||
(You will start with the "entrypoint" file, then go to the ones that are imported by that file, and so on.)
|
||||
Make sure that files contain all imports, types, variables etc. The code should be fully functional. If anything is unclear, just make assumptions. Make sure that code in different files are compatible with each other.
|
||||
|
||||
Reference in New Issue
Block a user