Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
| 392 |
-
except Exception as e:
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
|
|
|
|
|
|
|
|
|
| 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 |
|