Prompt design

Information extraction

You can ask Claude to extract information from a piece of text as follows. It’s best to include any questions or requests after a long document, rather than before it:



Human: Here's an email from a customer, in <email> tags:

<email>Hello, there’s a scratch on my boat, how can I get it repaired? My warranty number is 12345.</email>

You are a customer service agent, tasked with reading emails from customers about faulty products. You should determine whether there is a warranty code in the email, and include the warranty code in <code> tags in your response. If there is no warranty code included, respond with <code>NULL</code> in your answer.

Assistant: The warranty code is <code>


Human: Here's an article:

<article>
If you’re stuck in what seems like an endless cycle of procrastination, guilt and chaos, you might be wondering, “Why am I so lazy?” or “Why can’t I just get myself together?”

But despite the common perception, laziness usually isn’t the reason behind procrastination, said Jenny Yip, a clinical psychologist and executive director of the Los Angeles-based Little Thinkers Center, which helps children with academic challenges. “Laziness is like, ‘I have absolutely no desire to even think about this.’ Procrastination is, ‘It troubles me to think about this. And therefore, it’s hard for me to get the job done.’ That’s a big difference.”

Knowing why you procrastinate and learning how to combat it are the only ways to change your behavior, according to experts. Psychologist Linda Sapadin sought to help this self-improvement effort with her book “How to Beat Procrastination in the Digital Age.”

You could be the perfectionist, the dreamer, the worrier or the defier — these are all procrastination styles Sapadin lists in her book.

While these procrastination types aren’t specific diagnoses, and aren’t backed by research, “they are psychological types or reasons why someone might procrastinate,” said Yip, who is also a clinical assistant professor of psychiatry at the University of Southern California’s Keck School of Medicine.

Procrastination can have practical consequences, such as falling behind at work, failing to achieve personal goals or to cross errands like grocery shopping or mailing a letter off your to-do list. But there are also emotional or mental impacts. It has been associated with depression, anxiety and stress, poor sleep, inadequate physical activity, loneliness and economic difficulties, according to a January study on more than 3,500 college students.

“Particularly in America, where so much of our worth is tied up into what we do, how we work, what we produce — it can feel very shameful if you can’t do that,” said Vara Saripalli, a Chicago-based clinical psychologist. “It can leave people feeling very defeated and feeling like there’s no point in trying.”

Knowing why you procrastinate can make you self-aware, but you still need strategies to break the habit. “Otherwise, we’ll just keep repeating things,” Saripalli said. “The strategy you’re going to employ to beat procrastination is going to change based on the purpose procrastination is serving for you.”

Here’s how to explore which type of procrastinator you might be — though remember, you could well embody more than just one type’s traits.
</article>

Extract any quotes that address the question of where the psychologists work and put them in separate <quote> tags.

Assistant:
Here are two relevant quotes from the article:
<quote>Jenny Yip, a clinical psychologist and executive director of the Los Angeles-based Little Thinkers Center, which helps children with academic challenges.</quote>
<quote>Vara Saripalli, a Chicago-based clinical psychologist.</quote>
Was this page helpful?
Previous
Multiple choice & classification