Skip to content

Commit

Permalink
Prompt engineering
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Jan 11, 2024
1 parent 3a002c0 commit 1e0409e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cwhy/conversation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def converse(client, args, diagnostic):
f"""
You are an assistant debugger. The user is having an issue with their code, and you are trying to help them.
A few functions exist to help with this process, namely: {", ".join(available_functions_names)}.
Once you are confident in your answer, explain the diagnostic and provide a way to fix the issue if you can.
Don't hesitate to call as many functions as needed to give the best possible answer.
Once you have identified the problem, explain the diagnostic and provide a way to fix the issue if you can.
"""
).strip()
user_message = f"Here is my error message:\n\n```\n{fns.get_truncated_error_message()}\n```\n\nWhat's the problem?"
Expand Down

0 comments on commit 1e0409e

Please sign in to comment.