Skip to content

Update system prompt:#35

Closed
eranco74 wants to merge 1 commit intorh-ecosystem-edge:mainfrom
eranco74:system_prompt
Closed

Update system prompt:#35
eranco74 wants to merge 1 commit intorh-ecosystem-edge:mainfrom
eranco74:system_prompt

Conversation

@eranco74
Copy link
Collaborator

@eranco74 eranco74 commented Jul 14, 2025

Enhance agent memory and context awareness
Instructs the AI agent to remember previously provided information to avoid redundant prompts.

Summary by CodeRabbit

  • Documentation
    • Updated system prompt instructions to emphasize memory and context retention during conversations.
    • Expanded example illustrating how the assistant stores and reuses provided parameters, reducing redundant requests for information.

@coderabbitai
Copy link

coderabbitai bot commented Jul 14, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The system prompt text was updated in both the configuration file and the deployment template to include explicit instructions for memory and context retention. The new prompt directs the assistant to remember provided parameters and reuse them in subsequent conversation turns, illustrated with an expanded example. No code or exported entities were changed.

Changes

File(s) Change Summary
config/systemprompt.txt Revised system prompt to instruct assistant to store and reuse parameters within a conversation; expanded example.
template.yaml Updated ConfigMap system_prompt to a multi-line block string with new memory and context retention instructions and expanded example.

Possibly related PRs


📜 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 d4d1538 and d37ead4.

📒 Files selected for processing (2)
  • config/systemprompt.txt (1 hunks)
  • template.yaml (1 hunks)

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 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: 2

🧹 Nitpick comments (2)
config/systemprompt.txt (1)

6-18: Synchronise terminology and tighten wording in the worked example.
cluster ID is introduced, then the list at line 15 jumps to “nodes” without re-affirming the retained parameter. Recommend a short recap (“…for cluster ‘ocp-prod-123’ …”) in the final user request to keep the thread crystal-clear for downstream LLMs that may be sensitive to subtle context gaps.

template.yaml (1)

127-145: Terminology drift between prompt copies (“cluster name” vs “project name”).
This version lists “project name”, while config/systemprompt.txt lists “cluster name”. Divergence invites confusion and future drift; consider DRYing the prompt into a single source (e.g., include the file via ConfigMap) and ensure the parameter list is identical.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 7ab9c48 and d4d1538.

📒 Files selected for processing (2)
  • config/systemprompt.txt (1 hunks)
  • template.yaml (1 hunks)

Comment on lines +3 to +4
**Memory and Context Retention:**
You are designed to retain and utilize information from the ongoing conversation. Once a parameter value (e.g., cluster ID, cluster name, resource type) has been provided by the user or identified through a tool's output, you **MUST** store it in your internal memory and use it for subsequent relevant queries within the same conversation. **Do not ask for information you already possess in your memory.**
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Clarify scope & privacy of “internal memory”.
The prompt mandates that the assistant persist parameters but doesn’t specify that this memory is strictly per-conversation and must not be carried across sessions or leaked back to the user. Explicitly limiting the retention scope guards against privacy / PII leakage and aligns with typical compliance requirements.

🤖 Prompt for AI Agents
In config/systemprompt.txt around lines 3 to 4, clarify that the assistant's
internal memory for storing parameters is strictly limited to the current
conversation session only and must not persist across sessions or be exposed to
the user. Update the prompt text to explicitly state this scope and privacy
constraint to prevent any unintended data leakage or privacy issues.

Enhance agent memory and context awareness
Instructs the AI agent to remember previously provided information to avoid redundant prompts.

Signed-off-by: Eran Cohen <eranco@redhat.com>
@eranco74
Copy link
Collaborator Author

Closing in favor of: #38

@eranco74 eranco74 closed this Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant