sayande commited on
Commit
c204802
·
verified ·
1 Parent(s): 329fdb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -386,13 +386,16 @@ class GPTAgriRAGOrchestrator:
386
  except Exception as e:
387
  critique = f"(Validation step failed: {e})"
388
 
389
- # 5. GPT refinement (clean, non-repetitive, but non-judgmental)
390
- try:
391
- refined_answer = self._refine_answer_with_gpt(q, raw_answer, evidence, critique)
392
- except Exception as e:
393
- refined_answer = (
394
- f"⚠️ I had trouble refining the answer with GPT (`{e}`). "
395
- "Showing the original RAG answer plus critique:\n\n"
 
 
 
396
  f"{raw_answer}\n\n---\n\n**Internal critique:**\n{critique}"
397
  )
398
 
 
386
  except Exception as e:
387
  critique = f"(Validation step failed: {e})"
388
 
389
+ # # 5. GPT refinement (clean, non-repetitive, but non-judgmental)
390
+ # try:
391
+ # refined_answer = self._refine_answer_with_gpt(q, raw_answer, evidence, critique)
392
+ # except Exception as e:
393
+ # refined_answer = (
394
+ # f"⚠️ I had trouble refining the answer with GPT (`{e}`). "
395
+ # "Showing the original RAG answer plus critique:\n\n"
396
+ # f"{raw_answer}\n\n---\n\n**Internal critique:**\n{critique}"
397
+ # )
398
+ refined_answer = (
399
  f"{raw_answer}\n\n---\n\n**Internal critique:**\n{critique}"
400
  )
401