Questions tagged [prompt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
3 answers
185 views

How to force LLM (like OpenAI ChatGPT) to output a variable list of values? [closed]

What prompt (or other technique) should I use with an LLM so that The result is guaranteed to be reliably parseable as a list of values (e.g. a Python list of strings) LLM would understand that a ...
Elijas Dapšauskas's user avatar
0 votes
0 answers
82 views

Why is chatGPT 4 unable to correct a program given its output?

Recently I used chatGPT 4 to write a small project in Perl which involved reading of an exam file (multiple choice), comparing it to a master exam file, and scoring the student exam including fraud ...
CuriousIndeed's user avatar
2 votes
1 answer
119 views

LLM Hallucinations on In-Context Data

I know of some benchmarks that LLMs do undergo, but I am no expert whatsoever. I think what I am wondering about is closest to TruthfulQA. The question came up when I heard of combining company data ...
Mathy's user avatar
  • 143
1 vote
1 answer
66 views

How can LLMs understand and perform meta tasks? (e.g. summarization)

I don't ask how to make it summarize xy but if it is known how a "LLM" understands and performs this meta task at all. The same is true for prompts like "Be brief" or "Explain ...
d3nigma's user avatar
  • 23
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
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
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
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
0 votes
1 answer
138 views

Fine-tuning or Prompt Engineering or both?

We have a dataset of legal cases, academic papers etc which we will load into a vector database. We want to develop an agent that will allow a user to enter a specific legal issue, the agent then will ...
GEM's user avatar
  • 1
0 votes
0 answers
73 views

Word Embeddings but for Logical reasoning in custom knowledge GPT-3.5 bot

So I have created a chatbot using GPT-3.5 turbo. I have a vector database that holds vector embeddings of brands, ratings, commission percentages, outlets, tags, etc. Here's how the system is designed....
Shahrukh Khan'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
1 vote
1 answer
177 views

Teaching an LLM about daily updated machine-readable information so it can respond questions

I’m quite new in this field, and despite having spent some good amount of time learning the ins and outs of frameworks like LangChain, and browsing around the internet quite a bit, I still don’t know ...
newlog's user avatar
  • 121
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
1 vote
1 answer
191 views

If we prompt a large language model on a task, will its ability for other tasks be affected? How to recover?

For example, I guess that for some retrieval augmented LLMs, their generated contents may lack some creativity? Recent work has explored the inability of retrieval augmented methods to enhance the ...
Iris88's user avatar
  • 11
0 votes
0 answers
294 views

When would you use prompting vs. fine tuning?

I would like to hear your thoughts on when is it appropriate to use prompting vs. fine-tuning. Does one make more sense for specific tasks than the other. Kindly elaborate.
Josiah Cheruiyot's user avatar
0 votes
1 answer
49 views

can I add to a language model a prompt with output example?

I want to finetune GPT2 to extract relevant data from a given text. So for (a trivial) example, given the text "the car was manufactured in X, can reach Y km/h, and has Z horse powers", my ...
Hadar Sharvit's user avatar