diff --git a/backend/app/rag/chat.py b/backend/app/rag/chat.py index c22c7931..33df492b 100644 --- a/backend/app/rag/chat.py +++ b/backend/app/rag/chat.py @@ -367,6 +367,7 @@ def _get_llamaindex_callback_manager(): callback_manager = _get_llamaindex_callback_manager() text_qa_template = get_prompt_by_jinja2_template( self.chat_engine_config.llm.text_qa_prompt, + current_date=datetime.now().strftime("%Y-%m-%d"), graph_knowledges=graph_knowledges_context, original_question=self.user_question, ) diff --git a/backend/app/rag/default_prompt.py b/backend/app/rag/default_prompt.py index 7c319072..84c9e239 100644 --- a/backend/app/rag/default_prompt.py +++ b/backend/app/rag/default_prompt.py @@ -121,6 +121,7 @@ DEFAULT_TEXT_QA_PROMPT = """\ +Current Date: {{current_date}} --------------------- Knowledge graph information is below ---------------------