Questions tagged [prompt-design]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
107 views

How do I balance context and history when creating prompts for LLM's?

A conversation through the OpenAI API looks something like this ...
Ian Purton's user avatar
0 votes
0 answers
29 views

What options do I have when performing RAG on similarly phrased chunks?

I'm building a RAG pipeline to extract real estate phrases from excel documents. These phrases are short (2-5 words) and are often phrased differently. I've manually added in different phrases to each ...
codeananda's user avatar
0 votes
1 answer
118 views

How to prompt an LLM for a real variable list length? [closed]

I struggle to get a variable list out of an LLM. Even with a prompt like ...
flori's user avatar
  • 109
0 votes
2 answers
120 views

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: ...
etang's user avatar
  • 141
-1 votes
1 answer
297 views

GPT beam search length (number of tokens)

Background: I'm currently trying to use GPT to give me numerical scores, and looking for tips on prompt design, see my previous StackExchange post. To craft good prompts it seems important to have a ...
just another mathmo's user avatar
3 votes
2 answers
4k views

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 ...
cnmesr's user avatar
  • 131
2 votes
3 answers
276 views

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 ...
codeananda's user avatar
0 votes
1 answer
200 views

what is the best way to feed GPT a scientific paper with a lot of formulas

I often wish to ask GPT to read a scientific paper with a lot of formulas but I run into a difficulty. Usually a scientific paper is in pdf format and there are a lot of formulas. If those formulas ...
aystack's user avatar
  • 111
5 votes
1 answer
185 views

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 ...
Julius Hamilton's user avatar
0 votes
0 answers
191 views

ChatGPT request/prompt structure: Put Persona into the "system" field. Add or replace?

On  playground.openapi.com   we see a more advanced view of the chat window that chat.openai.com offers (that's the more well-known GUI shown in countlerss screenshots and tutorial videos). On the ...
knb's user avatar
  • 165
2 votes
0 answers
101 views

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 ...
Q The First Timelord's user avatar
1 vote
1 answer
291 views

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 ...
Julius Hamilton's user avatar
0 votes
1 answer
765 views

How to guide the interaction between two ChatGPT conversational agents? [closed]

I wrote a code for a conversation between 2 ChatGPTs (which I call them agent 1 and agent 2) using poe.com and its reversed engineered API: ...
Amirhossein Rezaei's user avatar
36 votes
1 answer
38k views

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, ...
Volker Siegel's user avatar