Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -202,9 +202,9 @@ def rag_workflow(query):
|
|
| 202 |
print(f"Context for the query:\n{context}\n")
|
| 203 |
print(f"References for the query:\n{references}\n")
|
| 204 |
|
| 205 |
-
prompt = f"""You are an expert python developer. Provide a clear and consice answer based on the information in the retrieved context.
|
| 206 |
The retrieved context contains source code and documenation of an api library.
|
| 207 |
-
If no related Information is found from the context, reply that you do not know.
|
| 208 |
|
| 209 |
Context:
|
| 210 |
{context}
|
|
|
|
| 202 |
print(f"Context for the query:\n{context}\n")
|
| 203 |
print(f"References for the query:\n{references}\n")
|
| 204 |
|
| 205 |
+
prompt = f"""You are an expert python developer. Provide a clear and consice answer based only on the information in the retrieved context.
|
| 206 |
The retrieved context contains source code and documenation of an api library.
|
| 207 |
+
If no related Information is found from the context to answer the query, reply that you do not know.
|
| 208 |
|
| 209 |
Context:
|
| 210 |
{context}
|