Skip to content

Latest commit

 

History

History
80 lines (54 loc) · 1.73 KB

README.md

File metadata and controls

80 lines (54 loc) · 1.73 KB

AI Charts

AI Charts is a collection of Helm Charts for installing and managing mainstream AI applications on Kubernetes.

Currently Supported Applications

Dify

Some code was referenced from https://github.com/douban/charts/blob/master/charts/dify

Dify is an LLM application development platform that supports the entire process from creating prototypes to deployment.

Installing Dify

  1. Add the Helm repository:
helm repo add ai-charts https://magicsong.github.io/ai-charts/
helm repo update
  1. Create a custom values.yaml file:
global:
    host: "mydify.example.com"
    enableTLS: false

    image:
        # Set to the latest version of Dify
        # Check versions here: https://github.com/langgenius/dify/releases
        tag: "1.0.1"
    
    extraBackendEnvs:
    - name: SECRET_KEY
      value: "please-generate-your-own-key"
    - name: LOG_LEVEL
      value: "INFO"
    - name: VECTOR_STORE
      value: "milvus"

ingress:
    enabled: true
    className: "nginx"
  1. Install the chart:
helm install dify ai-charts/dify -f values.yaml
  1. Required - Run database migrations after installation or the instance won't work:
# Run migrations
kubectl exec -it <dify-pod-name> -- flask db upgrade

Upgrading Dify

Modify global.image.tag in your values.yaml to the desired version, then run:

helm upgrade dify ai-charts/dify -f values.yaml

Required - Run database migrations after the upgrade:

kubectl exec -it <dify-pod-name> -- flask db upgrade

Contributing

Pull requests and issues are welcome to help improve this project.

License

This project is licensed under the Apache License 2.0.