nicobrenner / commandjobs

Command Jobs uses AI to help software engineers find the best jobs
Apache License 2.0
151 stars 14 forks source link

Improve prompt and prompt management #63

Open nicobrenner opened 5 months ago

nicobrenner commented 5 months ago

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:

DO NOT:

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