Spaces:
Runtime error
Runtime error
Update RAG_utils.py
Browse files- RAG_utils.py +1 -1
RAG_utils.py
CHANGED
@@ -176,7 +176,7 @@ class base_utils:
|
|
176 |
"""
|
177 |
# Define regular expression patterns for score and reasoning
|
178 |
score_pattern = r"Score: (\d+)"
|
179 |
-
reasoning_pattern = r"Reasoning: (.+)"
|
180 |
|
181 |
# Extract data using regular expressions
|
182 |
score_match = re.search(score_pattern, text)
|
|
|
176 |
"""
|
177 |
# Define regular expression patterns for score and reasoning
|
178 |
score_pattern = r"Score: (\d+)"
|
179 |
+
reasoning_pattern = r"Reasoning: (\S.+)"
|
180 |
|
181 |
# Extract data using regular expressions
|
182 |
score_match = re.search(score_pattern, text)
|