Spaces:
Runtime error
Runtime error
Update RAG_utils.py
Browse files- RAG_utils.py +1 -1
RAG_utils.py
CHANGED
@@ -185,7 +185,7 @@ class base_utils:
|
|
185 |
reasoning_matches = re.findall(reasoning_pattern, text, re.DOTALL)
|
186 |
|
187 |
# Find the longest reasoning match
|
188 |
-
longest_reasoning =
|
189 |
|
190 |
# Extract and return the results
|
191 |
extracted_data = {
|
|
|
185 |
reasoning_matches = re.findall(reasoning_pattern, text, re.DOTALL)
|
186 |
|
187 |
# Find the longest reasoning match
|
188 |
+
longest_reasoning = min(reasoning_matches, key=len) if reasoning_matches else None
|
189 |
|
190 |
# Extract and return the results
|
191 |
extracted_data = {
|