kpal002 commited on
Commit
ee1526f
1 Parent(s): 56665bf

Update RAG_utils.py

Browse files
Files changed (1) hide show
  1. 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 = max(reasoning_matches, key=len) if reasoning_matches else None
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 = {