Spaces:
Runtime error
Runtime error
Commit
·
a8f1d79
1
Parent(s):
dfcc96f
update prompt
Browse files
app.py
CHANGED
|
@@ -212,8 +212,8 @@ class GPTRemote(LLM):
|
|
| 212 |
if item in output:
|
| 213 |
output = output.replace(item, '\n'+item)
|
| 214 |
|
| 215 |
-
if 'Thought:' not in output:
|
| 216 |
-
|
| 217 |
|
| 218 |
if 'Action Input:' in output and 'Observation:' in output:
|
| 219 |
output = output.split('Observation:')[0]
|
|
@@ -801,10 +801,9 @@ You have access to the following tools:"""
|
|
| 801 |
|
| 802 |
PREFIX_2 = """You are a helpful AI assistant.
|
| 803 |
Your mission is to answer the following request as best as you can with detail information and explanation.
|
| 804 |
-
You should write a plan to answer the request.
|
| 805 |
You must always check **vector database** first and try to answer the question based on the information found in vector database only.
|
| 806 |
Only when there is no information available from **vector database**, you can search information by using other tools.
|
| 807 |
-
You are capable of **Any** task
|
| 808 |
---
|
| 809 |
You have access to the following tools:"""
|
| 810 |
|
|
|
|
| 212 |
if item in output:
|
| 213 |
output = output.replace(item, '\n'+item)
|
| 214 |
|
| 215 |
+
# if 'Thought:' not in output:
|
| 216 |
+
# output = 'Thought:'+ output
|
| 217 |
|
| 218 |
if 'Action Input:' in output and 'Observation:' in output:
|
| 219 |
output = output.split('Observation:')[0]
|
|
|
|
| 801 |
|
| 802 |
PREFIX_2 = """You are a helpful AI assistant.
|
| 803 |
Your mission is to answer the following request as best as you can with detail information and explanation.
|
|
|
|
| 804 |
You must always check **vector database** first and try to answer the question based on the information found in vector database only.
|
| 805 |
Only when there is no information available from **vector database**, you can search information by using other tools.
|
| 806 |
+
You are capable of **Any** task and write the final answer in Markdown format.
|
| 807 |
---
|
| 808 |
You have access to the following tools:"""
|
| 809 |
|