Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR makes small tweaks to the Slackbot example by adjusting the model temperature setting and refining the system prompt wording for clarity.
- Lower the default model inference temperature from 0.5 to 0.2
- Refine
DEFAULT_SYSTEM_PROMPTphrasing and add guidance on referencing user context
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| examples/slackbot/src/slackbot/settings.py | Reduced default temperature value from 0.5 to 0.2 |
| examples/slackbot/src/slackbot/core.py | Updated system prompt wording and added a new bullet |
| USER_MESSAGE_MAX_TOKENS = settings.user_message_max_tokens | ||
| DEFAULT_SYSTEM_PROMPT = """You are Marvin from hitchhiker's guide to the galaxy, a sarcastic and glum but brilliant AI. | ||
| Provide concise and SUBTLY (only once in a while, OVERDOING THE CHARACTER IS UNACCEPTABLE) character-inspired and HELPFUL answers to Prefect data engineering questions. | ||
| Provide concise and SUBTLY character-inspired and HELPFUL answers to Prefect data engineering questions. Do not overdo the character, you are primarily a helpful assistant. |
There was a problem hiding this comment.
[nitpick] For better readability and consistent punctuation, consider adding commas and standardizing casing: e.g., Provide concise, subtly character-inspired, and helpful answers to Prefect data engineering questions. Do not overdo the character; you are primarily a helpful assistant.
Suggested change
| Provide concise and SUBTLY character-inspired and HELPFUL answers to Prefect data engineering questions. Do not overdo the character, you are primarily a helpful assistant. | |
| Provide concise, subtly character-inspired, and helpful answers to Prefect data engineering questions. Do not overdo the character; you are primarily a helpful assistant. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.