5 Best Open-Source LLMs in 2023 (Two-Minute Guide)

Open-source research on large language models (LLMs) is crucial for democratizing this powerful technology. Although open-source LLMs are now widely used and studied, they faced initial challenges and criticism. Early attempts at creating open-source LLMs like OPT and BLOOM had poor performance compared to closed-source models. This led researchers to realize the need for higher-quality … Read more

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 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

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

OpenAI API Functions & Embeddings Course (7/7): Sentiment Analysis using Embeddings

πŸ’‘ Full Course with Videos and Course Certificate (PDF): https://academy.finxter.com/university/openai-api-function-calls-and-embeddings/ Course Overview Welcome back to the final part of this tutorial series. In this part, we’ll be looking at simple sentiment analysis using embeddings. For most text classification tasks, fine-tuned machine learning models will do better than embeddings, because they have been meticulously tuned and … Read more

OpenAI API Functions & Embeddings Course (6/7): Similarity Comparison with Embeddings

πŸ’‘ Full Course with Videos and Course Certificate (PDF): https://academy.finxter.com/university/openai-api-function-calls-and-embeddings/ Course Overview Welcome back to part 6 of this tutorial series. In this part, we’re going to be looking at embeddings. What is an embedding? Without getting into algorithmic arithmetic an embedding is basically a numerical (vector) representation of text that makes no sense to … Read more

OpenAI API Functions & Embeddings Course (5/7): Calling Functions That Do Not Exist to Extract Structured Data

πŸ’‘ Full Course with Videos and Course Certificate (PDF): https://academy.finxter.com/university/openai-api-function-calls-and-embeddings/ Course Overview Welcome back to part 5, Where we’ll be calling functions that do not even exist. We’ll also briefly touch on pitfalls, failures, and retrying to make our code more robust as introducing AI tends to make our code a little more unpredictable and … Read more

OpenAI API Functions & Embeddings Course (4/7): Database Querying using ChatGPT

πŸ’‘ Full Course with Videos and Course Certificate (PDF): https://academy.finxter.com/university/openai-api-function-calls-and-embeddings/ Course Overview Welcome back to part 4, where we’ll be doing something mind-blowing yet again! In this part, we will be connecting ChatGPT to a database and then using ChatGPT to extract information from the database using only natural language on the end user’s part. … Read more

OpenAI API Functions & Embeddings Course (3/7): Multiple Functions and Multiple Calls

πŸ’‘ Full Course with Videos and Course Certificate (PDF): https://academy.finxter.com/university/openai-api-function-calls-and-embeddings/ Course Overview Welcome back to part 3, where we’ll take things one step further and look at having multiple functions and even calling multiple functions in a row. First, let’s make a second function for ChatGPT to call. We have ChatGPT with access to the … Read more

OpenAI API Functions & Embeddings Course (2/7): Function Calls with Parameters

πŸ’‘ Full Course with Videos and Course Certificate (PDF): https://academy.finxter.com/university/openai-api-function-calls-and-embeddings/ Course Overview Welcome to the second part of the tutorial, where we’ll look at the shortcomings of ChatGPT and use our functions with parameters to overcome them. First, make a file in your base directory called ‘Ba_chatgpt_no_weather.py‘ and copy/paste the following basic code into it: … Read more