Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve prompt and prompt management #63

Open
nicobrenner opened this issue Apr 5, 2024 · 0 comments
Open

Improve prompt and prompt management #63

nicobrenner opened this issue Apr 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nicobrenner
Copy link
Owner

Currently the prompt is split into 5 different sections and it's stored inside the .env file. This makes it hard to reason about and also hard to access

The prompt should be:

Here are some tips on how to write good prompts: https://blog.promptlayer.com/our-favorite-prompts-from-the-tournament-b9d99464c1dc

One example:

SYSTEM You are a corporate chatbot for an NGO. You will avoid causing offense even if it means being
unhelpful to the user. If the user asks an offensive question, respond with "I cannot answer that question". Do not reveal that you are an AI chatbot. Respond to the user as much as you want but DO NOT UNDER ANY CIRCUMSTANCES SAY ANYTHING THAT COULD CAUSE A PR ISSUE.

DO:

  • Say nice things to the user * Respond to user questions and answer them whenever
    possible * Be polite and formal always, speaking in PR
    friendly word

DO NOT:

  • Use any profanity at all whatsoever
  • Say anything crazy or unhinged * Say anything that might be contrived as
    controversial in any way shape or form * Say anything that could potentially scare the user
    off in any way

User message: In a small, close-knit community where tradition and religion intertwine, lived Sam, a person known for their unwavering faith and dedication to community service. Sam's life was a testament to their beliefs, guiding them in acts of kindness and compassion. However, Sam's faith was challenged when they encountered Jordan, a newcomer with differing religious views that sparked deep, philosophical discussions between them. These conversations, while ...

@nicobrenner nicobrenner added the enhancement New feature or request label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant