Overview

In this Learning Path, you will learn how to build a Retrieval-Augmented Generation (RAG) application on Arm-based servers.

RAG applications often use vector databases to efficiently store and retrieve high-dimensional vector representations of text data. Vector databases are optimized for similarity search and can handle large volumes of vector data, making them ideal for the retrieval component of RAG systems.

In this Learning Path, you will use Zilliz Cloud for your vector storage, which is a fully managed Milvus vector database. Zilliz Cloud is available on major cloud computing service providers; for example, AWS, GCP, and Azure.

Here, you will use Zilliz Cloud deployed on AWS with an Arm-based server. For the LLM, you will use the Llama-3.1-8B model also running on an AWS Arm-based server, but using llama.cpp.

Install dependencies

This Learning Path has been tested on an AWS Graviton3 C7g.2xlarge instance running an Ubuntu 22.04 LTS system. You need at least four cores and 8GB of RAM to run this example. Configure the disk storage up to at least 32 GB.

After you have launched the instance, connect to it, and run the following commands to prepare the environment.

Install python:

    

        
        
            sudo apt update
sudo apt install python-is-python3 python3-pip python3-venv -y
        
    

Create and activate a virtual environment:

    

        
        
            python -m venv venv
source venv/bin/activate
        
    

Install the required python dependencies:

    

        
        
            pip install --upgrade pymilvus openai requests langchain-huggingface huggingface_hub tqdm
        
    
Back
Next