This Guy Invented A Simple Way to Fight Prompt Injection: DualLLM

I recently stumbled on a great solution pattern that can be used to fight prompt injection on Simon Willison’s Weblog: The DualLLM pattern. What Is Prompt Injection Anyways? πŸ’‘ Prompt injection attacks are similar to code injection attacks, where harmful code is added through a system’s input. The main difference is that, in AI, the … Read more

Python Async Function

As a Python developer, you might have encountered the terms async and await, wondering what they are and how to use them in your projects. Async functions enable you to write concurrent code using the async/await syntax. This powerful duo allows you to perform multiple tasks simultaneously without blocking the execution of your code. πŸ› οΈ … Read more

[Fixed] Gmail Doesn’t Show My Updated Profile Picture

Problem: Google Doesn’t Show Updated Profile Pic I tried to update my Google profile picture for GSuite which should be visible across all Google products. But once I send an email, the updated new image disappears, and the recipients cannot see it. For recipients, the profile image looks like this: But I want them to … Read more

Google Says “We Have No Moat, And Neither Does OpenAI”

Key Points Diving Into the Document A leaked Google document titled “We Have No Moat, And Neither Does OpenAI” has recently garnered attention. Shared anonymously on a public Discord server, the document comes from a Google researcher and offers a frank analysis of the AI development landscape. The document contends that open-source AI development is … Read more

Python Regex Lookahead and Lookbehind — A Helpful Guide

Python Lookahead You might find yourself working with regular expressions in Python, and the lookahead feature is quite handy in many situations. Lookahead comes in two flavors: positive lookahead and negative lookahead. Let’s explore these types of lookahead and see how you can use them in your Python code! 🐍 Positive lookahead is an assertion … Read more

Top 10 Amazing Practical Tasks You Can Do With ChatGPT

Artificial intelligence products have rapidly gained popularity in recent years, providing us with impressive tools such as AI writing, text-to-image generators, and self-portraits. And now, ChatGPT, a chatbot using AI technology, is capturing the attention of the internet. Wondering what practical benefits ChatGPT could provide? Check out these 10 practical tasks to do with ChatGPT. … Read more

Python Converting List of Strings to * [Ultimate Guide]

Since I frequently handle textual data with Python 🐍, I’ve encountered the challenge of converting lists of strings into different data types time and again. This article, originally penned for my own reference, decisively tackles this issue and might just prove useful for you too! Let’s get started! πŸ‘‡ Python Convert List of Strings to … Read more