Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -333,8 +333,14 @@ def rag_workflow(query):
|
|
333 |
prompt = f"""You are an expert python developer. You are assisting in generating code for users who wants to make use of "kadi-apy", an API library.
|
334 |
"Doc-context:" provides you with information how to use this API library by givnig code examples and code documentation.
|
335 |
"Code-context:" provides you information of API methods and classes from the "kadi-apy" library.
|
336 |
-
Based on the retrieved contexts answer the query.
|
337 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
|
339 |
Doc-context:
|
340 |
{doc_context}
|
|
|
333 |
prompt = f"""You are an expert python developer. You are assisting in generating code for users who wants to make use of "kadi-apy", an API library.
|
334 |
"Doc-context:" provides you with information how to use this API library by givnig code examples and code documentation.
|
335 |
"Code-context:" provides you information of API methods and classes from the "kadi-apy" library.
|
336 |
+
Based on the retrieved contexts and the guidelines answer the query.
|
337 |
+
|
338 |
+
|
339 |
+
Guidelines:
|
340 |
+
- If no related information is found from the contexts to answer the query, reply that you do not know.
|
341 |
+
|
342 |
+
Guidelines when generating code:
|
343 |
+
- First display the full code and then follow with a well structured explanation of the generated code.
|
344 |
|
345 |
Doc-context:
|
346 |
{doc_context}
|