Update app.py
Browse files
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+)'
|