Skip to content

Improve prompt and prompt management #63

@nicobrenner

Description

@nicobrenner

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 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions