Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lightspeed-stack.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: false
20 changes: 20 additions & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines +124 to +127
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

customization: block violates K8s ConfigMap schema

data: values in a ConfigMap must be flat string values (map[string]string).
Placing a nested mapping under customization: will fail server-side validation (cannot unmarshal !!map into string).

-    customization:
-      system_prompt_path: "/app-root/system_prompt"
-      disable_query_system_prompt: true
+# Move this block inside the lightspeed-stack.yaml payload (or wrap it with `|` so it
+# becomes a multiline string key), e.g.
+    lightspeed-stack.yaml: |
+      ...
+      customization:
+        system_prompt_path: "/app-root/system_prompt"
+        disable_query_system_prompt: true

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In template.yaml around lines 124 to 127, the customization block is nested
under data in a ConfigMap, which violates Kubernetes schema requiring data
values to be flat strings. To fix this, convert the nested customization mapping
into a single string value, for example by serializing it as JSON or YAML
string, or move it outside the data block if possible, ensuring all keys under
data are simple string key-value pairs.

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
Expand Down Expand Up @@ -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
Expand Down