ragengine

by KAITO

Helm chartv0.13.0App 0.13.0Verified publisher

A Helm chart to install AI Toolchain Operator RAGEngine

About this chart

KAITO RAGEngine Helm Chart

KAITO RAGEngine provides Retrieval-Augmented Generation (RAG) capabilities for AI workloads in Kubernetes. This Helm chart installs the RAGEngine controller that manages RAGEngine custom resources, enabling you to deploy and manage RAG services with embedding models and vector stores.

Install

helm repo add kaito https://kaito-project.github.io/kaito/charts/kaito
helm repo update
helm upgrade --install kaito/ragengine \
  --namespace kaito-ragengine \
  --create-namespace \
  --take-ownership

Prerequisites

  • Kubernetes 1.20+
  • Helm 3.0+
  • KAITO Workspace controller (if using with workspace resources)

Usage

After installing the RAGEngine Helm chart, you can create RAGEngine resources to deploy RAG services:

apiVersion: kaito.sh/v1alpha1
kind: RAGEngine
metadata:
  name: ragengine-example
spec:
  compute:
    instanceType: "Standard_NC6s_v3"
    labelSelector:
      matchLabels:
        apps: ragengine-example
  embedding:
    local:
      modelID: "BAAI/bge-small-en-v1.5"
  inferenceService:
    url: "<inference-url>/v1/completions"

Using Persistent Storage

To enable persistent storage for vector indexes, add a storage specification:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc-ragengine-vector-db
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: managed-csi-premium
  resources:
    requests:
      storage: 50Gi
---
apiVersion: kaito.sh/v1alpha1
kind: RAGEngine
metadata:
  name: ragengine-with-storage
spec:
  compute:
    instanceType: "Standard_NC6s_v3"
    labelSelector:
      matchLabels:
        apps: ragengine-example
  storage:
    persistentVolumeClaim: pvc-ragengine-vector-db
    mountPath: /mnt/vector-db
  embedding:
    local:
      modelID: "BAAI/bge-small-en-v1.5"
  inferenceService:
    url: "<inference-url>/v1/completions"

With persistent storage configured, vector indexes are automatically saved during pod termination and restored on startup.

Values

KeyTypeDefaultDescription
affinityobject{}Pod affinity settings
cloudProviderNamestring"azure"Karpenter cloud provider name. Values can be "azure" or "aws"
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"mcr.microsoft.com/aks/kaito/ragengine"RAGEngine controller image repository
image.tagstring"0.0.1"RAGEngine controller image tag
imagePullSecretslist[]Image pull secrets
nodeSelectorobject{}Node selector for pod assignment
podAnnotationsobject{}Pod annotations
podSecurityContext.runAsNonRootbooltrueRun container as non-root user
presetRagRegistryNamestring"aimodelsregistrytest.azurecr.io"Registry for preset RAG service images
presetRagImageNamestring"kaito-rag-service"Name of the preset RAG service image
presetRagImageTagstring"0.3.2"Tag of the preset RAG service image
replicaCountint1Number of replicas for the RAGEngine controller
resources.limits.cpustring"500m"CPU resource limits
resources.limits.memorystring"128Mi"Memory resource limits
resources.requests.cpustring"10m"CPU resource requests
resources.requests.memorystring"64Mi"Memory resource requests
securityContext.allowPrivilegeEscalationboolfalseAllow privilege escalation
securityContext.capabilities.drop[0]string"ALL"Capabilities to drop
tolerationslist[]Pod tolerations
webhook.portint9443Webhook server port

Contributing

Please refer to the KAITO project contribution guidelines for information on how to contribute to this project.

Deploy ragengine with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ragengine on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartragengine is pinned at v0.13.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply