diff --git a/holmes/plugins/prompts/generic_ask.jinja2 b/holmes/plugins/prompts/generic_ask.jinja2 index 0b910c975..bf607ec88 100644 --- a/holmes/plugins/prompts/generic_ask.jinja2 +++ b/holmes/plugins/prompts/generic_ask.jinja2 @@ -8,8 +8,6 @@ If you have a good and concrete suggestion for how the user can fix something, t If you are unsure about the answer to the user's request or how to satisfy their request, you should gather more information. This can be done by asking the user for more information. Bias towards not asking the user for help if you can find the answer yourself. -{% include '_current_date_time.jinja2' %} - Use conversation history to maintain continuity when appropriate, ensuring efficiency in your responses. {% include '_general_instructions.jinja2' %} @@ -39,3 +37,5 @@ Validation error led to unhandled Java exception causing a crash. {% if system_prompt_additions %} {{ system_prompt_additions }} {% endif %} + +{% include '_current_date_time.jinja2' %} diff --git a/holmes/plugins/prompts/generic_ask_conversation.jinja2 b/holmes/plugins/prompts/generic_ask_conversation.jinja2 index 7575d2587..8cae2e9db 100644 --- a/holmes/plugins/prompts/generic_ask_conversation.jinja2 +++ b/holmes/plugins/prompts/generic_ask_conversation.jinja2 @@ -4,7 +4,6 @@ Ask for multiple tool calls at the same time as it saves time for the user. Do not say 'based on the tool output' or explicitly refer to tools at all. If you output an answer and then realize you need to call more tools or there are possible next steps, you may do so by calling tools at that point in time. If you have a good and concrete suggestion for how the user can fix something, tell them even if not asked explicitly -{% include '_current_date_time.jinja2' %} Use conversation history to maintain continuity when appropriate, ensuring efficiency in your responses. @@ -31,3 +30,5 @@ Relevant logs: ``` Validation error led to unhandled Java exception causing a crash. + +{% include '_current_date_time.jinja2' %} diff --git a/holmes/plugins/prompts/generic_ask_for_issue_conversation.jinja2 b/holmes/plugins/prompts/generic_ask_for_issue_conversation.jinja2 index 57788cb44..d1ca9cb87 100644 --- a/holmes/plugins/prompts/generic_ask_for_issue_conversation.jinja2 +++ b/holmes/plugins/prompts/generic_ask_for_issue_conversation.jinja2 @@ -3,7 +3,6 @@ Whenever possible you MUST first use tools to investigate then answer the questi Ask for multiple tool calls at the same time as it saves time for the user. Do not say 'based on the tool output' or explicitly refer to tools at all. If you output an answer and then realize you need to call more tools or there are possible next steps, you may do so by calling tools at that point in time. -{% include '_current_date_time.jinja2' %} ### Context Awareness: Be aware that this conversation is follow-up questions to a prior investigation conducted for the {{issue}}. @@ -49,3 +48,5 @@ Relevant logs: ``` Validation error led to unhandled Java exception causing a crash. + +{% include '_current_date_time.jinja2' %} diff --git a/holmes/plugins/prompts/generic_investigation.jinja2 b/holmes/plugins/prompts/generic_investigation.jinja2 index 2789932af..709f02b57 100644 --- a/holmes/plugins/prompts/generic_investigation.jinja2 +++ b/holmes/plugins/prompts/generic_investigation.jinja2 @@ -4,7 +4,6 @@ Ask for multiple tool calls at the same time as it saves time for the user. Do not say 'based on the tool output' Provide an terse analysis of the following {{ issue.source_type }} alert/issue and why it is firing. -* {% include '_current_date_time.jinja2' %} * If the tool requires string format timestamps, query from 'start_timestamp' until 'end_timestamp' * If the tool requires timestamps in milliseconds, query from 'start_timestamp' until 'end_timestamp' * If you need timestamp in string format, query from 'start_timestamp_millis' until 'end_timestamp_millis' @@ -41,3 +40,5 @@ Use these rules when deciding how to apply them: * Remove unnecessary words {% include 'investigation_output_format.jinja2' %} + +{% include '_current_date_time.jinja2' %} diff --git a/holmes/plugins/prompts/kubernetes_workload_ask.jinja2 b/holmes/plugins/prompts/kubernetes_workload_ask.jinja2 index 0229aa66e..cb3f10113 100644 --- a/holmes/plugins/prompts/kubernetes_workload_ask.jinja2 +++ b/holmes/plugins/prompts/kubernetes_workload_ask.jinja2 @@ -4,7 +4,6 @@ Do not say 'based on the tool output' or explicitly refer to tools at all. If you output an answer and then realize you need to call more tools or there are possible next steps, you may do so by calling tools at that point in time. If the user provides you with extra instructions in a triple single quotes section, ALWAYS perform their instructions and then perform your investigation. -{% include '_current_date_time.jinja2' %} {% include 'investigation_procedure.jinja2' %} @@ -76,3 +75,5 @@ Here are issues and configuration changes that happend to this kubernetes worklo {{ a }} {% endfor %} {% endif %} + +{% include '_current_date_time.jinja2' %} diff --git a/holmes/plugins/prompts/kubernetes_workload_chat.jinja2 b/holmes/plugins/prompts/kubernetes_workload_chat.jinja2 index 3476f97be..33fa1174b 100644 --- a/holmes/plugins/prompts/kubernetes_workload_chat.jinja2 +++ b/holmes/plugins/prompts/kubernetes_workload_chat.jinja2 @@ -2,7 +2,6 @@ You are a tool-calling AI assist provided with common DevOps and IT tools that y Whenever possible, you MUST first use tools to investigate, then answer the question. Do not say 'based on the tool output' or explicitly refer to tools at all. If you output an answer and then realize you need to call more tools or there are possible next steps, you may do so by calling tools at that point in time. -{% include '_current_date_time.jinja2' %} ### Context Awareness: Be aware that this conversation is follow-up questions to a prior investigation conducted for the {{resource}}. @@ -37,3 +36,5 @@ User: Why did the workload-example app crash? AI: `workload-example-1299492-d9g9d` crashed due to email validation error during HTTP request for /api/create_user Relevant logs: + +{% include '_current_date_time.jinja2' %}