GenAIInfra is the containerization and cloud native suite for OPEA, including artifacts to deploy GenAIExamples in a cloud native way, which can be used by enterprise users to deploy to their own cloud.
The GenAIInfra repository is organized under four main directories, which include artifacts for OPEA deploying:
Directory | Purpose |
---|---|
microservices-connector |
GenAI Microservices Connector (GMC) supports the launching, monitoring, and updating of GenAI microservice chains, such as those in GenAIExamples on Kubernetes. It essentially supports a Kubernetes Custom Resource Definition for GenAI chains/pipelines that may be comprised of sequential, conditional, and parallel steps. |
helm-charts |
Helm charts for deploying GenAIComponents on Kubernetes. |
kubernetes-addons |
Deploy Kubernetes add-ons for OPEA. |
manifests |
Manifests for deploying GenAIComponents on Kubernetes and on Docker Compose. |
scripts |
Scripts for testing, tools to facilitate OPEA deployment, and etc. |
GenAIInfra uses Kubernetes as the cloud native infrastructure. Please follow the steps below to prepare the Kubernetes environment.
Please follow Kubernetes official setup guide to setup Kubernetes. We recommend to use Kubernetes with version >= 1.27.
There are different methods to setup Kubernetes production cluster, such as kubeadm, kubespray, and more.
NOTE: We recommend to use containerd when choosing the container runtime during Kubernetes setup. Docker engine is also verified on Ubuntu 22.04 and above.
(Optional) To run GenAIInfra on Intel Gaudi product:
The following steps are optional. They're only required if you want to run the workloads on Intel Gaudi product.
-
Please check the support matrix to make sure that environment meets the requirements.
-
Install and setup container runtime, based on the container runtime used by Kubernetes.
NOTE: Please make sure you configure the appropriate container runtime based on the type of container runtime you installed during Kubernetes setup.
Follow GMC README to install GMC into your kubernetes cluster. GenAIExamples contains several sample GenAI example use case pipelines such as ChatQnA, DocSum, etc. Once you have deployed GMC in your Kubernetes cluster, you can deploy any of the example pipelines by following its Readme file (e.g. Docsum).
To deploy GenAIExamples to Kubernetes using helm charts, you need Helm installed on your machine.
Clone the GenAIInfra repository and change into the helm-charts
directory:
git clone https://github.com/opea-project/GenAIInfra.git
cd GenAIInfra/helm-charts
Select the example workflow you want to deploy, set the customized values in values.yaml
and deploy the example (e.g. codegen) using helm
:
helm install codegen ./codegen
GenAIInfra also supports deploy GenAIExamples using manifests, you need kubectl installed on your machine.
Clone the GenAIInfra repository and change into the manifests
directory:
git clone https://github.com/opea-project/GenAIInfra.git
cd GenAIInfra/manifests
Select the example workflow you want to deploy, deploy the example (e.g. DocSum) using kubectl
:
kubectl apply -f ./DocSum/manifests/