Posts

Posts

"#best practices" #prompts
Highlights from the Claude 4 system prompt
Highlights from the Claude 4 system prompt
Anthropic publish most of the system prompts for their chat models as part of their release notes. They recently shared the new prompts for both Claude Opus 4 and Claude …
Reading these system prompts reminds me of the thing where any warning sign in the real world hints at somebody having done something extremely stupid in the past. A system prompt can often be interpreted as a detailed list of all of the things the model used to do before it was told not to do them.
because language models acquire biases and opinions throughout training—both intentionally and inadvertently—if we train them to say they have no opinions on political matters or values questions only when asked about them explicitly, we’re training them to imply they are more objective and unbiased than they are.
We want people to know that they’re interacting with a language model and not a person. But we also want them to know they’re interacting with an imperfect entity with its own biases and with a disposition towards some opinions more than others. Importantly, we want them to know they’re not interacting with an objective and infallible source of truth
I love “even if the person seems to have a good reason for asking for it”—clearly an attempt to get ahead of a whole bunch of potential jailbreaking attacks.
Claude responds in sentences or paragraphs and should not use lists in chit chat, in casual conversations, or in empathetic or advice-driven conversations. In casual conversation, it’s fine for Claude’s responses to be short, e.g. just a few sentences long. That “should not use lists in chit chat” note hints at the fact that LLMs love to answer with lists of things!
There follows an entire paragraph about making lists, mostly again trying to discourage Claude from doing that so frequently
·simonwillison.net·
Highlights from the Claude 4 system prompt
Moritz Kremb on Twitter / X
Moritz Kremb on Twitter / X
Here's the prompt:---Today you will be writing instructions to an eager, helpful, but inexperienced and unworldly AI assistant who needs careful instruction and examples to understand how best to behave. I will explain a task to you. You will write instructions that will direct…— Moritz Kremb (@moritzkremb) March 18, 2024
·x.com·
Moritz Kremb on Twitter / X
(1) Zain Hasan on X: "Anthropic was able to solve the "lost in the middle" problem "by adding the sentence “Here is the most relevant sentence in the context:” to the start of Claude’s response. This was enough to raise Claude 2.1’s score from 27% to 98% on the original evaluation." Does it just take… https://t.co/K2veWRXkoN" / X
(1) Zain Hasan on X: "Anthropic was able to solve the "lost in the middle" problem "by adding the sentence “Here is the most relevant sentence in the context:” to the start of Claude’s response. This was enough to raise Claude 2.1’s score from 27% to 98% on the original evaluation." Does it just take… https://t.co/K2veWRXkoN" / X
·twitter.com·
(1) Zain Hasan on X: "Anthropic was able to solve the "lost in the middle" problem "by adding the sentence “Here is the most relevant sentence in the context:” to the start of Claude’s response. This was enough to raise Claude 2.1’s score from 27% to 98% on the original evaluation." Does it just take… https://t.co/K2veWRXkoN" / X
(1) Sacrificial Pancakes - AI Willy Wonka on X: "couple ChatGPT 4 discoveries this morning: * specifying that code is MIT licensed makes it be more thorough in its answers and be more willing to provide complete/modified code * you can ask it to get familiar with a topic before you ask questions, this makes the question pass…" / X
(1) Sacrificial Pancakes - AI Willy Wonka on X: "couple ChatGPT 4 discoveries this morning: * specifying that code is MIT licensed makes it be more thorough in its answers and be more willing to provide complete/modified code * you can ask it to get familiar with a topic before you ask questions, this makes the question pass…" / X
·twitter.com·
(1) Sacrificial Pancakes - AI Willy Wonka on X: "couple ChatGPT 4 discoveries this morning: * specifying that code is MIT licensed makes it be more thorough in its answers and be more willing to provide complete/modified code * you can ask it to get familiar with a topic before you ask questions, this makes the question pass…" / X
Sarah Chieng on Twitter / X
Sarah Chieng on Twitter / X
I compiled a prompt engineering "best practices and tricks" doc 😀Created based on OpenAI @isafulf's prompt engineering talk at @NeurIPSConf and enriched with more details, examples, and tips.I focused on making the document as comprehensive and concise as possible, and it… pic.twitter.com/nPjux6JSzO— Sarah Chieng (@SarahChieng) January 1, 2024
·x.com·
Sarah Chieng on Twitter / X
Jeremy Nguyen ✍🏼 🚢 on Twitter
Jeremy Nguyen ✍🏼 🚢 on Twitter
3/ Leah’s prompts are functional. They delivered results.She started by giving GPT the context.Then she did something most people don’t. She didn’t ask GPT to write her resume.She told Jeep to ask her for more information. pic.twitter.com/BS8haSeQES— Jeremy Nguyen ✍🏼 🚢 (@JeremyNguyenPhD) June 23, 2023
·twitter.com·
Jeremy Nguyen ✍🏼 🚢 on Twitter