mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 21:29:12 +00:00
More lenient date searching (#481)
* Modify DateFilter to use compiled entry key * Instruct search to include date in query * Minor prompt change * Prompt fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Standard Packages
|
||||
import logging
|
||||
from datetime import datetime
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Optional
|
||||
|
||||
# External Packages
|
||||
@@ -70,6 +70,7 @@ def extract_questions(
|
||||
bob_age={current_new_year.year - 1984},
|
||||
chat_history=chat_history,
|
||||
text=text,
|
||||
yesterday_date=(today - timedelta(days=1)).strftime("%Y-%m-%d")
|
||||
)
|
||||
messages = [ChatMessage(content=prompt, role="assistant")]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user