bupa1018 commited on
Commit
6b65f6c
·
1 Parent(s): ddab6e1

Update kadi_apy_bot.py

Browse files
Files changed (1) hide show
  1. 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. You are assisting in generating code for users.
163
 
164
- Based on the retrieved document and code snippets and the guidelines answer the "query".
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
- Documentation context:
 
 
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}