Can I Run OpenAI’s API in Parallel? Yes, with Python Async!

If you’re like me, you’re using OpenAI API a lot in your Python code. So the natural question arises: “How to use OpenAI’s API asynchronously by issuing multiple requests at once?” I will give you my code for asynchronous OpenAI API requests for copy and paste below. But first, allow me to give you a … Read more

LlamaIndex Getting Started – Your First Example in Python

Install LlamaIndex with PIP Note that we assume you’re using OpenAI API. If you don’t want to use OpenAI, LlamaIndex automatically uses Meta’s Llama model. However, this would require roughly 12GB of your memory across GPU and CPU (at the time of writing) and run the Llama LLM models locally. πŸ§‘β€πŸ’» Tip: I recommend you … Read more

LlamaIndex – What the Fuzz?

πŸ¦™ LlamaIndex is a powerful tool to implement the “Retrieval Augmented Generation” (RAG) concept in practical Python code. If you want to become an exponential Python developer who wants to leverage large language models (aka. Alien Technology) to 10x your coding productivity, you’ve come to the right place. Let’s get started with the concept first. … Read more

Fine-Tuning GPT-3.5 Turbo – How to Craft Your Own Proprietary LLM

The much-awaited feature for GPT-3.5 Turbo is here: fine-tuning. And guess what? GPT-4 is next in line this autumn. Dive in to discover how this can revolutionize your applications and user experiences. What’s New? OpenAI now empowers you to tailor GPT-3.5 Turbo with your data, ensuring the model aligns perfectly with your specific needs. Preliminary … Read more

Prompt Engineers Use This ChatGPT Prompting Formula

In this article, we will delve into the art of crafting effective queries (i.e., prompts) for AI language models like ChatGPT, Bard, and Bing. A well-formed prompt can make a significant difference in the quality of the responses you receive, saving you time and effort in refining your questions. We will unveil a simple, adaptable … Read more

Google Bard Extracts Code From Images (PNG, JPEG, WebP)

Consider the following screenshot of a code snippet: Let’s say I want to extract the code from the image. I don’t want to type it out. What can I do? I just discovered that Google Bard has sufficient image recognition skills that you can upload images and ask it to extract the code from the … Read more

Claude 2 LLM Reads Ten Papers in One Prompt with Massive 200k Token Context

The new Claude 2 model from AI research company Anthropic has proved insane new capabilities. In this quick article, I’ll give you a short and concise overview of what you need to know. Claude 2 Overview Anthropic’s latest prodigy, Claude 2, is making waves. This AI language model, part of the Claude series, is a … Read more

Those 4 OG Prompt Programming Tricks Still Work Today

I just read one of the most influential papers titled “Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigm” by Gwern Branwen, Connor Leahy, and Alexander Turner that first introduced prompt programming, a predecessor of today’s multi-six-figure skill prompt engineering. This short excursion in prompting history will be valuable for improving your prompting skills … Read more

ChatGPT Breaks New Ground in Robotics! This New Microsoft Research Shows How

Microsoft Research has just released a cutting-edge study that offers groundbreaking insights into the use of OpenAI’s ChatGPT for robotics applications. Dubbed “ChatGPT for Robotics: Design Principles and Model Abilities,” the paper pioneers an innovative strategy that could revolutionize how we approach and interact with robotic tasks, platforms, and forms. The study uniquely converges two … Read more

4 Effective Prompt Generators to Use Daily for ChatGPT & Midjourney

πŸ’‘ Definition: A prompt generator is a specialized software tool designed to create high-quality input prompts to guide the responses of other AI programs, such as ChatGPT or Midjourney. Its primary objective is to enhance the output quality of these AI programs, ensuring more accurate, detailed, and contextually appropriate results. I spent most of my … Read more

What Are Embeddings in OpenAI?

Embeddings, in the context of OpenAI, are numerical representations of textual or code-based information. They convert concepts into number sequences, which enables computers to comprehend the relationships between these concepts more easily. OpenAI’s embedding models, such as text-embedding-ada-002, have been designed to outperform other top models in various standard benchmarks, including a 20% relative improvement … Read more