Spaces:
Runtime error
Runtime error
Update kadi_apy_bot.py
Browse files- kadi_apy_bot.py +8 -6
kadi_apy_bot.py
CHANGED
|
@@ -159,14 +159,16 @@ class KadiAPYBot:
|
|
| 159 |
"""
|
| 160 |
Generate a response using the retrieved contexts and the LLM.
|
| 161 |
"""
|
| 162 |
-
prompt = f"""You are an expert python developer
|
| 163 |
|
| 164 |
-
|
| 165 |
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
|
|
|
|
|
|
| 170 |
{doc_context}
|
| 171 |
Code Snippets:
|
| 172 |
{code_context}
|
|
|
|
| 159 |
"""
|
| 160 |
Generate a response using the retrieved contexts and the LLM.
|
| 161 |
"""
|
| 162 |
+
prompt = f"""You are an expert python developer assisting in generating code for users.
|
| 163 |
|
| 164 |
+
Your task is to generate Python scripts that fullfills the user's query based on the provided "Document snippets", "Code Snippets" and guidelines
|
| 165 |
|
| 166 |
+
Guidelines when generating code:
|
| 167 |
+
- Display the complete code first, followed by a concise explanation in no more than 5 sentences.
|
| 168 |
+
|
| 169 |
+
- If the user's query can not be fullfilled based on the provided snippets, reply with "The API does not support the requested functionality"
|
| 170 |
+
|
| 171 |
+
Document snippets:
|
| 172 |
{doc_context}
|
| 173 |
Code Snippets:
|
| 174 |
{code_context}
|