Prompt improvements

Written on 20 April 2024, 06:33pm

Tagged with:

Here’s the structure of an effective prompt recommended by the SANS Institute in their ‘Introduction to AI and Leveraging it in Cybersecurity‘ course:

context + the question (the task) + instructions

An example in the screenshot below, with the 3 paragraphs below following this structure:

A few more tips to improve the prompt results:

  1. be polite
  2. add emotional stimuli to your prompts
  3. use affirmative directions instead of negative (“do” instead of “don’t”)
  4. instruct the LLM to think step by step
  5. if you need to understand a complex topic, ask the LLM to ELI5 (“explain like I’m 5”)
  6. assign a role to the LLM

We observed that impolite prompts often result in poor performance, but overly polite language does not guarantee better outcomes. The best politeness level is different according to the language. This phenomenon suggests that LLMs not only reflect human behavior but are also influenced by language, particularly in different cultural contexts. 

https://arxiv.org/ftp/arxiv/papers/2402/2402.14531.pdf

Our automatic experiments show that LLMs have a grasp of emotional intelligence, and their performance can be improved with emotional prompts (which we call “EmotionPrompt” that combines the original prompt with emotional stimuli). The implementation of EmotionPrompt is remarkably straightforward and requires only the addition of emotional stimuli to the initial prompts:

https://arxiv.org/pdf/2307.11760.pdf

We present 26 guiding principles designed to streamline the process of querying and prompting large language models. The more precise the task or directive provided, the more effectively the model performs, aligning its responses more closely with our expectations. This suggests that LLMs do not merely memorize training data but are capable of adapting this information to suit varying prompts, even when the core inquiries remain constant. Therefore, it proves beneficial to assign a specific role to LLMs as a means to elicit outputs that better match our intended results.

https://arxiv.org/pdf/2312.16171.pdf

Two things about modern-day journalism

Written on 27 March 2024, 09:50pm

Tagged with: , ,

  1. It’s increasingly difficult to get informed, but much easier to be fed narratives
  2. The politicians are not supposed to be the story.

So, while this book is a love letter to the West, this chapter is a plea from the heart to journalists – please stop fucking with the media. It is not yours to co-opt or use to spread propaganda. You are merely stewards of the industry.

Konstantin Kisin: An Immigrant’s Love Letter to the West

Notice anything? 
Where’s the policy? Politicians are supposed to be vectors to solve our problems. They’re not supposed to be the story. We are supposed to be the story.

Brian Klaas. The Death of Serious Politics

A few things that I liked in 2023

Written on 30 December 2023, 05:54pm

Tagged with: , , , ,

The #yearly_roundup of things that I enjoyed this year.

  1. Doing what I like. In 2023 I changed jobs. While remaining in the same field of IT security, the perspective, responsibilities and expectations changed. Combined with the working-from-home routine, it was a great year from a professional point of view.
  2. Sticking to a healthy routine. Less active compared to 2022, but kept the wheels moving. Next year aiming for 500 hours of exercise time, 5 million steps and 4000 km covered distance.
  3. Reading. Again a bit less than in 2022, but discovered a few good reads (Harry Potter among them ) and I enjoyed the new Kindle Scribe.
  4. Refereeing football games. Loving it, looking forward for more in 2024.
  5. The Worldle games (classic worldle, quordle, octordle, victordle, etc). Because sometimes you need to let your brain switch off.
  6. Discovering the Loire Valley. One of the best holidays of the recent years. All thanks to my trusty 5 years old Tesla.
  7. Two things that I am using for 16 hours every day: a Herman Miller Aeron chair and a Tempur mattress. None of them are cheap, but given how long I will use them I think they worth the investment.
  8. The Titanium iPhone 15 Pro. For the first time since owning an iPhone, enjoying the case-less joy of using it.
  9. A few series: Seinfeld, The Big Bang Theory, Young Sheldon. Some things will never change.
  10. No longer wasting my time on Twitter (or whichever letter it becomes). I replaced it with a combination of Substack, Reddit and Quora, because one must still waste their time sometimes…

A missed opportunity for the MacBook Pro to make it to this list, mostly because of the Finder and keyboard issues. To be revisited at the end of 2024.