Python Pickle Module: Simplify Object Persistence [Ultimate Guide]

πŸ₯’ Python pickling is another word for serializing and de-serializing Python objects, so you can store them in a binary format or transmit them across a network. Pickling helps preserving the state of objects, such as data structures or machine learning models, between different sessions or applications. The pickle module in Python’s standard library provides … Read more

Free OpenAI Terminology Cheat Sheet (PDF)

Sharing Policy: You are free to share this cheat sheet on your social account or use for whatever you want if you include the source URL: https://blog.finxter.com/openai-glossary/ Download the PDF by clicking on the image below: πŸ‘‡ PDF Download Link: https://blog.finxter.com/wp-content/uploads/2023/04/Finxter_OpenAI_Glossary.pdf You can also download all of our OpenAI, ChatGPT, and programming cheat sheets by … Read more

Python Regex Capturing Groups – A Helpful Guide (+Video)

Python’s regex capturing groups allow you to extract parts of a string that match a pattern. For example: match = re.search(r'(\d+)’, ‘abc123’) captures the digits, and match.group(1) returns ‘123’. One of the powerful aspects of Python’s regular expression capabilities is the use of capturing groups. By using capturing groups, you can easily extract specific portions … Read more

Python f-Strings — The Ultimate Guide

Python f-strings, available since Python 3.6, offer a concise way to embed expressions in string literals using curly braces {}. They improve readability and performance over older methods like %-formatting and str.format(). To use f-strings, prefix the string with “f” or “F” and enclose expressions within braces: f”My name is {name} and I am {age} … Read more

Python List of Dicts to Pandas DataFrame

In this article, I will discuss a popular and efficient way to work with structured data in Python using DataFrames. πŸ’‘ A DataFrame is a two-dimensional, size-mutable, and heterogeneous tabular data structure with labeled axes (rows and columns). It can be thought of as a table or a spreadsheet with rows and columns that can … Read more

The Evolution of Large Language Models (LLMs): Insights from GPT-4 and Beyond

Playing with any large language model (LLM), such as GPT-4, is fascinating.Β  But it doesn’t give you an accurate understanding of where AGI is heading because one isolated snapshot provides limited information. You can gain more insight into the growth and dynamicity of LLMs by comparing two subsequent snapshots. Roughly speaking, it’s less interesting to … Read more

GPT Prompt Injection + Examples

Prompt injection is a technique that can hijack a language model’s output by using untrusted text as part of the prompt. Similar to other injection attacks in the information security field, prompt injection can occur when instructions and data are concatenated, making it difficult for the underlying engine to distinguish between them (NCC Group Research). … Read more

The ChatGPT Prompt Hack: Let’s Think Step by Step – Does It Really Work?

I was just reading a new research paper from OpenAI researchers proposing that the model accuracy improves if you append “Let’s think step by step” to your prompt: They used a two-step prompting strategy to automatically insert it so the user doesn’t recognize: But we can do it explicitly in our own prompts to try … Read more

Best 35 Helpful ChatGPT Prompts for Coders (2023)

As human coders, we need to adapt or die. When Google released its powerful search capabilities a couple of decades ago, we needed to learn their search interface or become irrelevant. Because a coder capable of using search effectively is 10x more productive than one who doesn’t. The same holds for large language models (LLMs), … Read more