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

How Many Publications Does One Need to Get a Ph.D. in Computer Science?

The following answer is based on my experience as a doctoral researcher in distributed systems. Computer science is a big field with vast differences in the quality and quantity requirements of your Ph.D. supervisor. Having said this, you’ll probably need somewhere between two to five publications to get a Ph.D. in computer science. I have … Read more

[Book Review] Learn AI-Assisted Python Programming with GitHub Copilot and ChatGPT

I just got an early copy of Prof. Porter’s and Prof. Zingaro’s “Learn AI-Assisted Python Programming with GitHub Copilot and ChatGPT”. In this quick blog, I’ll share my 5-star review: ⭐⭐⭐⭐⭐ Programming in 2023 looks a lot different than programming in 2022. The transformational development of powerful large language models (LLMs) has brought new challenges … Read more

How to Install Llama Index in Python

The LlamaIndex Python library is a mind-blowing 🀯 tool that lets you easily access large language models (LLMs) from your Python applications. Overview πŸ¦™ 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 … Read more

Python vs Go – Which Language Should You Choose in 2024

Both Python and Go are extremely relevant today. Both languages are widely used. Golang fans argue that people flock from Python to the newer and faster language Golang, also known as Go. Is this true? Not really. See this search volume comparison from Google Trends: πŸ‘‡ Go is a much newer language than Python, released … 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

How to Download a Zoom Video from a URL in Python?

To download a Zoom video in Python, first install the requests library using pip install requests. Then, use the requests.get() method to fetch the video content from the Zoom URL and save it to a file with .mp4 extension. Ensure you have the necessary permissions and note that some videos may require authentication or additional … Read more

Python Code for Getting Historical Weather Data

To get historical weather data in Python, install the Meteostat library using pip install meteostat or run !pip install meteostat with the exclamation mark prefix ! in a Jupyter Notebook. If you haven’t already, also install the Matplotlib library using pip install matplotlib. Then, copy the following code into your programming environment and change the … Read more

How to Install Winsound?

🎢 Winsound provides a simple way to play sound using the Windows built-in sound-playing machinery. 🐍 Now you may ask: “How to install Winsound?“ Answer: You don’t. 🐍 winsound is a built-in module in Python’s standard library for Windows. Like all standard libraries in Python, you don’t need to install it separately if you’re using … Read more