An LLM-powered knowledge curation system that researches a topic and generates a full-length report with citations.
Python agentic-ragdeep-researchemnlp2024knowledge-curationlarge-language-modelsnaaclnlpreport-generationretrieval-augmented-generation
Change Exception to narrower ValueError
evidencebp5855f318c8f1
diff --git a/eval/evaluation_prometheus.py b/eval/evaluation_prometheus.pyindex 2569bd9..50a86b2 100644--- a/eval/evaluation_prometheus.py+++ b/eval/evaluation_prometheus.py@@ -122,7 +122,7 @@ def get_grading_dict(responses,score = decoded_output[decoded_output.find("[RESULT]") + len("[RESULT]"):].replace("</s>", "").strip()try:int(score)- except Exception as e:+ except ValueError as e:pattern = r"the overall score is (\d+)"match = re.search(pattern, feedback)if match: