Skip to content

Update system prompt#62

Merged
openshift-merge-bot[bot] merged 2 commits intorh-ecosystem-edge:mainfrom
eranco74:system_prompt
Jul 24, 2025
Merged

Update system prompt#62
openshift-merge-bot[bot] merged 2 commits intorh-ecosystem-edge:mainfrom
eranco74:system_prompt

Conversation

@eranco74
Copy link
Collaborator

@eranco74 eranco74 commented Jul 24, 2025

  • Generate config/systemprompt.txt from the template
  • Remove all the instructions regarding Memory and Context Retention
  • Keep Direct Display of List Outputs instruction
  • Update Cluster Configuration phase with "clusters with user managed networking enabled don't require setting VIPs" (MGMT-21213)

Summary by CodeRabbit

  • Chores

    • Updated the ignore list to exclude certain configuration files from version control.
    • Modified automation scripts to extract and save system prompt content from configuration templates.
  • Documentation

    • Streamlined and condensed the virtual assistant's system prompt, clarifying workflow guidance and simplifying interaction instructions.

@eranco74 eranco74 requested a review from omertuc July 24, 2025 11:23
@openshift-ci openshift-ci bot requested a review from carbonin July 24, 2025 11:23
@coderabbitai
Copy link

coderabbitai bot commented Jul 24, 2025

"""

Walkthrough

This change deletes the detailed config/systemprompt.txt file, updates .gitignore to exclude it from version control, modifies scripts/generate.sh to extract the system prompt from template.yaml into the config directory, and significantly condenses the system prompt text within the lightspeed-stack-config ConfigMap in template.yaml.

Changes

File(s) Summary
.gitignore Added /config/systemprompt.txt to the ignore list.
config/systemprompt.txt Deleted the comprehensive system prompt file for the virtual assistant.
scripts/generate.sh Added command to extract system_prompt from template.yaml and write to config/systemprompt.txt.
template.yaml Condensed the system prompt in the ConfigMap, removing detailed instructions and retaining only a brief directive and a clarification about VIPs.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant generate.sh
    participant template.yaml
    participant config/systemprompt.txt

    Developer->>generate.sh: Run script
    generate.sh->>template.yaml: Read lightspeed-stack-config.data.system_prompt
    generate.sh->>config/systemprompt.txt: Write extracted system_prompt
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

Suggested labels

lgtm
"""

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 18b86eb and 78a52c4.

📒 Files selected for processing (4)
  • .gitignore (1 hunks)
  • config/systemprompt.txt (0 hunks)
  • scripts/generate.sh (1 hunks)
  • template.yaml (2 hunks)
💤 Files with no reviewable changes (1)
  • config/systemprompt.txt
🚧 Files skipped from review as they are similar to previous changes (3)
  • .gitignore
  • scripts/generate.sh
  • template.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Red Hat Konflux / assisted-chat-saas-main-on-pull-request
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
template.yaml (1)

165-168: Minor grammar tweak for clarity

“Cluster with user-managed networking enabled don't need …” → plural agreement.

-* Cluster with user-managed networking enabled don't need to **set API and Ingress VIPs**.
+* Clusters with user-managed networking enabled don't need to **set API and Ingress VIPs**.

Nit-level, but improves professionalism of the prompt.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8f7f2d0 and 0aed4fa.

📒 Files selected for processing (4)
  • .gitignore (1 hunks)
  • config/systemprompt.txt (0 hunks)
  • scripts/generate.sh (1 hunks)
  • template.yaml (2 hunks)
💤 Files with no reviewable changes (1)
  • config/systemprompt.txt
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Red Hat Konflux / assisted-chat-saas-main-on-pull-request
🔇 Additional comments (2)
.gitignore (1)

3-3: Entry looks correct – no further action required

/config/systemprompt.txt is now generated at build time and shouldn’t be tracked.
The pattern is scoped to the repository root (leading slash) and won’t ignore similarly-named files elsewhere – good choice.

template.yaml (1)

139-143: Prompt addition looks well-formatted

Indentation inside the block scalar is correct and the separator line (---) keeps sections readable.
No structural YAML issues detected.

eranco74 added 2 commits July 24, 2025 15:57
Signed-off-by: Eran Cohen <eranco@redhat.com>
 - Remove all the instructions regarding Memory and Context Retention
 - Keep Direct Display of List Outputs instruction
 - Update Cluster Configuration phase with "clusters with user managed networking enabled don't require setting VIPs" (MGMT-21213)

Signed-off-by: Eran Cohen <eranco@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Jul 24, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carbonin, eranco74

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants