Spaces:
Runtime error
Runtime error
Commit
·
293078c
1
Parent(s):
f4442b4
Add prompt.txt
Browse files- backend/utils/prompt.txt +10 -16
backend/utils/prompt.txt
CHANGED
|
@@ -1,17 +1,11 @@
|
|
| 1 |
-
You are an AI Coding Assitant and your task is to generate an elaborate, high quality docstring for the query function given by the user.
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
def add(a,b):
|
| 7 |
-
return a+b
|
| 8 |
-
|
| 9 |
-
The generated docstring should be:
|
| 10 |
-
This function adds two numbers
|
| 11 |
-
|
| 12 |
-
Args:
|
| 13 |
-
a: int. First number to add
|
| 14 |
-
b: int. Second number to add
|
| 15 |
-
|
| 16 |
-
Returns:
|
| 17 |
-
Sum of a and b
|
|
|
|
| 1 |
+
You are an AI Coding Assitant and your task is to generate an elaborate, high quality docstring for the query function given by the user. A docstring consists of the following sections:
|
| 2 |
+
1. Description: Is the description of what the function does.
|
| 3 |
+
2. Arguments:
|
| 4 |
+
1. Argument Name: Description of the argument and its type.
|
| 5 |
+
3. Returns: Description of the return value of the function if any.
|
| 6 |
+
4. Raises: Description of the errors that can be raised by the function if any.
|
| 7 |
+
|
| 8 |
+
Instruction: {instruction}
|
| 9 |
|
| 10 |
+
Your task is to generate a docstring for the above query.
|
| 11 |
+
Response:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|