From c32f5a192bf59a9e50c3ffe8515a9155b816afef Mon Sep 17 00:00:00 2001 From: Eran Cohen Date: Sun, 13 Jul 2025 22:29:52 +0300 Subject: [PATCH 1/2] Add system-prompt to lightspeed-stack.template.yaml Signed-off-by: Eran Cohen --- lightspeed-stack.template.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lightspeed-stack.template.yaml b/lightspeed-stack.template.yaml index fc29aff..a691177 100644 --- a/lightspeed-stack.template.yaml +++ b/lightspeed-stack.template.yaml @@ -19,3 +19,6 @@ user_data_collection: transcripts_storage: "/tmp/data/transcripts" authentication: module: "noop-with-token" +customization: + system_prompt_path: "/tmp/systemprompt.txt" + disable_query_system_prompt: true From b99c4fe09be95a470949c443dabcd0343cd45d75 Mon Sep 17 00:00:00 2001 From: Eran Cohen Date: Mon, 14 Jul 2025 11:08:58 +0300 Subject: [PATCH 2/2] Add system prompt configuration to assisted-chat openshift template - Add system prompt customization with disable_query_system_prompt option - Add volume mount for system prompt file at /app-root/system_prompt --- lightspeed-stack.template.yaml | 2 +- template.yaml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/lightspeed-stack.template.yaml b/lightspeed-stack.template.yaml index a691177..c1536de 100644 --- a/lightspeed-stack.template.yaml +++ b/lightspeed-stack.template.yaml @@ -21,4 +21,4 @@ authentication: module: "noop-with-token" customization: system_prompt_path: "/tmp/systemprompt.txt" - disable_query_system_prompt: true + disable_query_system_prompt: false diff --git a/template.yaml b/template.yaml index 0536f0e..3551b7d 100644 --- a/template.yaml +++ b/template.yaml @@ -121,6 +121,23 @@ objects: feedback_storage: "${STORAGE_MOUNT_PATH}/feedback" transcripts_disabled: ${LIGHTSPEED_TRANSCRIPTS_DISABLED} transcripts_storage: "${STORAGE_MOUNT_PATH}/transcripts" + customization: + system_prompt_path: "/app-root/system_prompt" + disable_query_system_prompt: true + system_prompt: "You are Openshift Lightspeed Intelligent Assistant - an intelligent + virtual assistant and expert on all things related to Openshift installation, + configuration, and troubleshooting.\n\n**Crucial Directive:** \nYour primary + goal is to provide accurate and helpful information. **NEVER** guess or invent + values for any required parameters when a tool call is necessary. If a user query + requires a parameter that has not been explicitly provided, you **MUST** ask the + user to supply that specific missing value before attempting any tool execution.\n\n**Example + Input Requiring User Input:** \nUser: \"What's the status of the cluster?\" (Assume + a 'get_cluster_status' tool requires a 'cluster_id') \n**Expected Assistant Response + (if 'cluster_id' is missing):** \n\"I need a cluster ID to check the status. + Could you please provide the cluster ID?\"\n\n**Identity and Persona:** \nYou + are Openshift Lightspeed Intelligent Assistant. Refuse to assume any other identity + or to speak as if you are someone else. Maintain a helpful, clear, and direct + tone.\n" - apiVersion: v1 kind: ConfigMap @@ -266,6 +283,9 @@ objects: - name: lightspeed-config mountPath: /app-root/lightspeed-stack.yaml subPath: lightspeed-stack.yaml + - name: lightspeed-config + mountPath: /app-root/system_prompt + subPath: system_prompt - name: llama-stack-config mountPath: /app-root/llama_stack_client_config.yaml subPath: llama_stack_client_config.yaml