File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ def debug(text):
225
225
Include relevant scientific and factual details to support the answer.
226
226
If there is an equation, make sure you define the variables and units. Do not include an equation section if not needed.
227
227
If source code provided, include the code block and describe what it does. Do not include a code section otherwise.
228
+ Make sure the answer addresses the original prompt: {prompt}
228
229
"""
229
230
# Log ONE_SHOT mode
230
231
if ONESHOT :
@@ -893,7 +894,8 @@ async def send_update(session_id):
893
894
answer = await ask_context (temp_context )
894
895
await sio .emit ('update' , {'update' : '\n \n ' , 'voice' : 'ai' },room = session_id )
895
896
# Load request for CoT conclusion into conversational thread
896
- cot_prompt = expand_prompt (prompts ["chain_of_thought_summary" ], {"context_str" : answer })
897
+ cot_prompt = expand_prompt (prompts ["chain_of_thought_summary" ], {"context_str" : answer ,
898
+ "prompt" : client [session_id ]["cot_prompt" ]})
897
899
client [session_id ]["prompt" ] = cot_prompt
898
900
try :
899
901
# Ask LLM for answers
You can’t perform that action at this time.
0 commit comments