The relative-time regex only matched digits between 'last/past' and the unit, so 'last few hours' fell through to dateparser which then found the bare word 'hours' and resolved it as midnight local time. Extended the regex to capture 'few', 'couple of', 'several', 'a few' as approximate quantifiers, mapped to 3 units each. Numeric expressions and bare 'last hour' still work as before. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| diagnose.py | ||
| incidents.py | ||
| llm.py | ||
| models.py | ||
| search.py | ||