small prompt updates

This commit is contained in:
Anton Osika
2023-06-04 21:39:42 +02:00
parent 45d2a56afb
commit f62c318d39
4 changed files with 4 additions and 17 deletions

13
TODO.md
View File

@@ -1,13 +0,0 @@
### Next up
We have noticed that for complex projects the model is "lazy" in implementing many files.
Hence, we want to let LLM generate a new prompt for a "sub-engnieer" that goes through each file, takes other relevant files as context and rewrites the files.
### More things to try
- allow for human edits in the code/add comments and store those edits as diffs, to use as "feedback" in the future etc
- Add step of generating tests
- Fix code based on failing tests
- Allow for rerunning the entire run from scratch, but "replay" human diffs by adding the diffs to the prompt and asking LLM to apply them in the new code
- keep a repository of examples of human feedback that can be reused globally
- Allow for fine grained configuration, per project, so that it can be regenerated from scratch applying all the human diffs that came after the initial AI generation step. Which diffs come in which steps, etc.

View File

@@ -10,6 +10,6 @@ Before you finish, double check that all parts of the architecture is present in
File syntax:
```file.py
```file.py/ts/html
[ADD YOUR CODE HERE]
```

View File

@@ -8,6 +8,6 @@ Before you finish, double check that all parts of the architecture is present in
File syntax:
```main_file.py
```file.py/ts/html
[ADD YOUR CODE HERE]
```
```

View File

@@ -19,7 +19,7 @@ def chat(
run_prefix: str = typer.Option("", help="run prefix, if you want to run multiple variants of the same project and later compare them"),
model: str = "gpt-4",
temperature: float = 0.1,
max_tokens: int = 4096,
max_tokens: int = 8192,
):
if project_path is None: