mtyrrell commited on
Commit
47a95ac
1 Parent(s): b6c4f7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -86,6 +86,7 @@ def get_refs(docs, res):
86
  Parse response for engineered reference ids (refer to prompt template)
87
  Extract documents using reference ids
88
  '''
 
89
  # This pattern should be returned by gpt3.5
90
  # pattern = r'ref\. (\d+)\]\.'
91
  pattern = r'ref\. (\d+)'
 
86
  Parse response for engineered reference ids (refer to prompt template)
87
  Extract documents using reference ids
88
  '''
89
+ res = res.lower() # Convert to lowercase for matching
90
  # This pattern should be returned by gpt3.5
91
  # pattern = r'ref\. (\d+)\]\.'
92
  pattern = r'ref\. (\d+)'