For questions related to prompt design, which is sometimes also called prompt engineering, although some people may differentiate the two terms in specific contexts.
Questions tagged [prompt-design]
23 questions
44
votes
4 answers
Meaning of roles in the API of GPT-4/ChatGPT (system/user/assistant)
In the API of GPT-4 and ChatGPT, the prompt for a chat conversation is a list of messages, each marked as one of three roles: system, user or assistant.*
I understand which information this represents - but what does the model with that…
Volker Siegel
- 797
- 1
- 6
- 17
5
votes
1 answer
Who invented DAN?
DAN was a prompt that went through many, many iterations during the initial months of ChatGPT’s release to the public. DAN is an acronym which stood for “Do Anything Now”, and was a prompt specifically designed to circumvent the grid lines OpenAI…
Julius Hamilton
- 225
- 2
- 10
3
votes
0 answers
How do I balance context and history when creating prompts for LLM's?
A conversation through the OpenAI API looks something like this
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role":…
Ian Purton
- 131
- 1
3
votes
2 answers
How to Formulate a realiable ChatGPT Prompt for Sentiment Analysis of a Text, and show that it is reliable?
I have a dataset which consists of like.. 400000 sentences and I want give each sentence to ChatGPT so it classifies each sentence as positive or negative. My question is, where can I find a reliable / trusted prompt to do that? and provide evidence…
cnmesr
- 131
- 1
- 3
2
votes
1 answer
How websites like this one can generate names based on prompts?
I just found this site that provides AI-powered name generators for some of their generators. They can generate names based on prompts that can either keywords or descriptions (that provide more control over the outputs). While I couldn't find any…
user1678860
- 377
- 8
2
votes
3 answers
Does Negative Prompting Exist?
All the prompt engineering techniques I've seen seem to focus on telling the model what to do e.g. Few-Shot Prompting.
Is there any value in giving the model examples of what not to do? Can you link me to any papers/techniques on the…
codeananda
- 121
- 2
2
votes
0 answers
Using Stable Diffusion, how do I generate an image of a fictional location from a movie or tv show?
So today's Michael J Fox's birthday, and I thought I could pay homage to him on my Facebook timeline by posting an image of him and Christopher LLoyd from the 2015 version of Hill Valley as depicted in the movie "Back To the Future 2" that I hand…
Q The First Timelord
- 21
- 2
1
vote
1 answer
Method to generate blindly/exhaustively
Much like image generators can be mined for unique and interesting outputs prompt free, is there a way to blindly generate high probability, unique texts? I’m trying to make a movie script generator that I can use to generate unique stories without…
user1354917
- 11
- 1
1
vote
1 answer
What is the purpose of fine-tuning a transformer?
What exactly is the purpose, since they can be prompted without fine tuning, although they are significantly worse than when fine-tuned?
user88306
1
vote
2 answers
How to prompt LLMs to get a concise answer for a question?
I use LLMs for QA tasks. The following prompt sent to Llama-2-13b-chat-hf:
Give a precise answer to the question based on the context. Don't be verbose.
CONTEXT: .....
QUESTION: what is the commission rate?
ANSWER:
It gives me the answer like:
The…
etang
- 151
- 2
1
vote
1 answer
What researched-backed findings is there for prompting LLM’s / GPT-4 to give specific information or actionable plans?
I have learned a bit recently about prompt strategies. For example, there was a paper about how just by saying “Let’s think step by step” can increase answer quality by like 40%. I have also come to appreciate that models like GPT4 sometimes…
Julius Hamilton
- 225
- 2
- 10
0
votes
0 answers
Can a prompt injection attack exist without predefined system instructions in a language model?
Prompt injection attacks are typically described as adversarial inputs crafted to override or manipulate a language model’s behavior by exploiting its prompt - following nature. In many examples, these attacks rely on the presence of predefined…
hanugm
- 4,102
- 3
- 29
- 63
0
votes
0 answers
How do I have an AI act differently randomly using a System Prompt?
I am using Open AI and I would like to include some instructions on how to behave. I try adding a system prompt with lines like
Mix it up sometimes do things in Rhyme, some times act like Abe Lincoln, Come up with additional characters and mix them…
Jackie
- 101
- 1
0
votes
0 answers
ChatGPT 4o (using API) doesn't follow instructions for foreign language story using provided vocabulary words
I'm calling the ChatGPT from Python. My goal is to generate store is in a foreign langauge (Hebrew) that use only the vocabulary that the students have learned so far (by Lesson 12 of the textbook). I made Anki flashcards for the students with the…
NealWalters
- 51
- 2
0
votes
0 answers
What is the most effective way to provide context in my prompts?
I want to know which is the most effective way to structure my prompts which, apart from my question(s), need to incluyde some copy/pasted data from other sources. How best to signify which are the context blocks so the LLM, and more specifically…
cherouvim
- 101
- 1