Skip to content

Commit 7fb67d7

Browse files
committed
fix: update instruction prompt design
1 parent 2c8136a commit 7fb67d7

File tree

2 files changed

+1
-166
lines changed

2 files changed

+1
-166
lines changed

analysis/result_analysis.ipynb

-165
This file was deleted.

script/parse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def get_instruction_prompt(data):
417417
if data["doc"]["raises"]:
418418
base += "\nThe function should raise the exception for: " + " ".join(data["doc"]["raises"])
419419
base += "\nThe function should output with:\n " +\
420-
"\n ".join(data["doc"]["returns"]) + "\nYou should start with:\n```\n" + data["prompt_wo_doc"] + "```"
420+
"\n ".join(data["doc"]["returns"]) + "\nYou should write self-contained code starting with:\n```\n" + data["prompt_wo_doc"] + "```"
421421
return base
422422

423423
def check_test_wo_doc(data):

0 commit comments

Comments
 (0)