Spaces:
Runtime error
Runtime error
Commit ·
f789cd9
1
Parent(s): dbcd902
syntax error
Browse files- queryHelperManagerCoT.py +2 -2
queryHelperManagerCoT.py
CHANGED
|
@@ -63,7 +63,7 @@ class QueryHelperChainOfThought:
|
|
| 63 |
if "yes" in cot1.lower()[:5]:
|
| 64 |
print("User input sufficient")
|
| 65 |
tasks = self.extractSingleJson(cotStep1)
|
| 66 |
-
print(f"tasks are {tasks})
|
| 67 |
taskQueries = {}
|
| 68 |
for key, task in tasks.items():
|
| 69 |
taskQuery = self.getQueryForUserInput(userInput)
|
|
@@ -77,7 +77,7 @@ class QueryHelperChainOfThought:
|
|
| 77 |
query = taskQueries[key]["taskQuery"]
|
| 78 |
userPrompt += f" task: {task}, task query: {query}"
|
| 79 |
return self.self.gptInstance.getResponseForUserInput(userPrompt, combiningSubtasksQueryPrompt)
|
| 80 |
-
return f"Please rephrase your query. {' '.join(cot1.split('Reason')[1:])}
|
| 81 |
|
| 82 |
def getQueryForUserInput(self, userInput, chatHistory=[]):
|
| 83 |
gptSampleRows = self.gptSampleRows
|
|
|
|
| 63 |
if "yes" in cot1.lower()[:5]:
|
| 64 |
print("User input sufficient")
|
| 65 |
tasks = self.extractSingleJson(cotStep1)
|
| 66 |
+
print(f"tasks are {tasks}")
|
| 67 |
taskQueries = {}
|
| 68 |
for key, task in tasks.items():
|
| 69 |
taskQuery = self.getQueryForUserInput(userInput)
|
|
|
|
| 77 |
query = taskQueries[key]["taskQuery"]
|
| 78 |
userPrompt += f" task: {task}, task query: {query}"
|
| 79 |
return self.self.gptInstance.getResponseForUserInput(userPrompt, combiningSubtasksQueryPrompt)
|
| 80 |
+
return f"Please rephrase your query. {' '.join(cot1.split('Reason')[1:])}"
|
| 81 |
|
| 82 |
def getQueryForUserInput(self, userInput, chatHistory=[]):
|
| 83 |
gptSampleRows = self.gptSampleRows
|