Retrieval-Augmented Generation: Doing a small project with RAG ...
Before starting the practice, everyone can download the notebook file and datasets here.
Installing the llamaindex framework:
In this lesson, we will be using a free API provided by Google. It’s called Gemini AI, which is quite powerful and a worthy competitor to OpenAI’s ChatGPT.
First, everyone should install the packages related to Gemini:
Installing an Embedding Model:
In this lesson, we will need to embed data chunks. Therefore, an embedding model is required. Here, we will use one from Hugging Face.
Now, everyone should install Hugging Face for llamaindex:
Using the Google Gemini API:
As mentioned earlier, in this lesson we will be using Gemini-Pro from Google. This model is...
AI Engineer & Indie Hacker | AI Engineer at VulcanLabs by day, Indie Hacker by night