anything-llm

by la-cc

Helm chartv1.1.5App 1.2.2Verified publisher

A Helm chart, that allows your easy way to deploy anything-llm. But also allows you to deploy anything-llm with different components like chromadb, nvidia-device-plugin, ollama, and more.

About this chart

Anything-LLM All-in-One Helm Chart

anything-llm

A Helm chart, that allows your easy way to deploy anything-llm. But also allows you to deploy anything-llm with different components like chromadb, nvidia-device-plugin, ollama, and more.

Maintainers

NameEmailUrl
la-cc[email protected]https://github.com/la-cc
deB4SHhttps://github.com/deB4SH

Introduction - Anything-LLM Helm Chart

Thanks to the work of Mintplex-Labs for creating anything-llm! If you like it, feel free to leave a ⭐️ on the anything-llm or contribute to the project or booth!!

This chart allows you to deploy Anything-LLM on a Kubernetes cluster using the Helm package manager. Anything-LLM is a versatile API that can be used to interact with various language models, embedding models, and vector databases.

To get an idea, here is a visual representation of a simplified architecture:

The full list of supported LLMs, Vector DBs and Embedder can be found under Supported LLMs, Embedder Models, Speech models, and Vector Databases

The easiest way to start with anything-llm is to use the default components with OpenAI API like:

This is how the ui looks like after deploying the easiest way:

Installing the Chart

To install the chart with the release name anything-llm:

$ helm repo add anything-llm https://la-cc.github.io/anything-llm-helm-chart
$ helm repo update
$ helm install anything-llm anything-llm/anything-llm

Or if you like you can also template the manifest and apply it directly:

Note: Don't template the secret, its not recommended to store the secret in the manifest. Its just for demonstration purposes and to keep the process simple. Please create a secret and reference it in the values.yaml.

$ helm template anything-llm anything-llm/anything-llm -f values.yaml | kubectl apply -f -

The next section "Requirements" is only required, if you want replace anyrhing-llm components like llm, embedded, vector db with your own components. If you want to use the default components, you can skip the next section.

Requirements

RepositoryNameVersion
https://amikos-tech.github.io/chromadb-chart/chromadb0.1.20
https://la-cc.github.io/nvidia-device-plugin-helm-chartnvidia-device-plugin0.3.9
https://otwld.github.io/ollama-helm/ollama0.61.0

Values

KeyTypeDefaultDescription
chromadb.chromadb.auth.enabledboolfalse
chromadb.enabledboolfalse
chromadb.service.typestring"ClusterIP"
configobject{"EMBEDDING_MODEL_MAX_CHUNK_LENGTH":"8192","EMBEDDING_MODEL_PREF":"nomic-embed-text:1.5","STORAGE_DIR":"/app/server/storage","TTS_PROVIDER":"native","VECTOR_DB":"lancedb","WHISPER_PROVIDER":"local"}Configuration for the application.
config.EMBEDDING_MODEL_PREFstring"nomic-embed-text:1.5"Configuration for the embedding model.
config.VECTOR_DBstring"lancedb"Configuration for the vector db like lanceDB (in storage) or chroma DB (external), etc.
fullnameOverridestring"anything-llm"Override the full name of the chart.
imageobject{"pullPolicy":"IfNotPresent","repository":"ghcr.io/mintplex-labs/anything-llm","tag":"1.2.2"}Configuration for the Docker image used by the pod.
image.pullPolicystring"IfNotPresent"The pull policy for the image. IfNotPresent means the image will only be pulled if it is not already present locally.
image.repositorystring"ghcr.io/mintplex-labs/anything-llm"The Docker repository to pull the image from.
image.tagstring"1.2.2"The specific tag of the image to use.
ingressobject{"annotations":{"cert-manager.io/cluster-issuer":"letsencrypt-dns","cert-manager.io/renew-before":"360h","nginx.ingress.kubernetes.io/rewrite-target":"/"},"enabled":true,"hosts":[{"host":"llm.example.com","paths":[{"path":"/","pathType":"Prefix"}]}],"ingressClassName":"nginx","tls":[{"hosts":["llm.example.com"],"secretName":"anything-llm-tls"}]}Ingress configuration.
ingress.annotationsobject{"cert-manager.io/cluster-issuer":"letsencrypt-dns","cert-manager.io/renew-before":"360h","nginx.ingress.kubernetes.io/rewrite-target":"/"}Ingress annotations.
ingress.enabledbooltrueEnable ingress.
ingress.hostslist[{"host":"llm.example.com","paths":[{"path":"/","pathType":"Prefix"}]}]Ingress hosts.
ingress.ingressClassNamestring"nginx"Ingress class name.
ingress.tlslist[{"hosts":["llm.example.com"],"secretName":"anything-llm-tls"}]TLS configuration for ingress.
nvidia-device-plugin.enabledboolfalse
nvidia-device-plugin.fullnameOverridestring"nvidia-device-plugin"
nvidia-device-plugin.resources.limits."nvidia.com/gpu"int1
nvidia-device-plugin.tolerations[0].effectstring"NoSchedule"
nvidia-device-plugin.tolerations[0].keystring"nvidia.com/gpu"
nvidia-device-plugin.tolerations[0].operatorstring"Exists"
ollama.autoscaling.enabledboolfalse
ollama.autoscaling.maxReplicasint1
ollama.enabledboolfalse
ollama.fullnameOverridestring"ollama"
ollama.image.repositorystring"ollama/ollama"
ollama.image.tagstring"0.3.12"
ollama.ollama.gpu.enabledbooltrue
ollama.ollama.models[0]string"gemma2"
ollama.ollama.numberint1
ollama.ollama.typestring"nvidia"
ollama.persistentVolume.accessModes[0]string"ReadWriteOnce"
ollama.persistentVolume.enabledbooltrue
ollama.persistentVolume.sizestring"50Gi"
ollama.persistentVolume.storageClassstring""
ollama.tolerations[0].effectstring"NoSchedule"
ollama.tolerations[0].keystring"ai"
ollama.tolerations[0].operatorstring"Equal"
ollama.tolerations[0].valuestring"true"
persistenceobject{"accessMode":"ReadWriteOnce","enabled":true,"size":"10Gi","volumes":[{"mountPath":"/app/server/storage","name":"server-storage"}]}Persistence configuration.
persistence.accessModestring"ReadWriteOnce"Access mode for the persistent volume.
persistence.enabledbooltrueEnable persistence.
persistence.sizestring"10Gi"Size of the persistent volume.
persistence.volumeslist[{"mountPath":"/app/server/storage","name":"server-storage"}]List of volumes to create.
replicaCountint1Number of pod replicas to deploy.
secretobject{"data":{"AUTH_TOKEN":"replace-me","JWT_SECRET":"replace-me"},"enabled":true,"name":""}Secret configuration.
secret.dataobject{"AUTH_TOKEN":"replace-me","JWT_SECRET":"replace-me"}Secret data.
secret.enabledbooltrueEnable secrets.
secret.namestring""Name of the secret, if not set, a secret is generated.
serviceobject{"port":3001,"type":"ClusterIP"}Service configuration.
service.portint3001Service port.
service.typestring"ClusterIP"Service type.

Autogenerated from chart metadata using helm-docs v1.14.2

General possible Configuration for Anything-LLM

ConfigurationExample ValueDescription
SERVER_PORT3001Port on which the server will run.
STORAGE_DIR"/app/server/storage"Directory for storing application data.
UID1000User ID for running the application.
GID1000Group ID for running the application.
SIG_KEY'passphrase'Passphrase for signing (requires at least 32 characters).
SIG_SALT'salt'Salt for signing (requires at least 32 characters).
JWT_SECRET"my-random-string-for-seeding"Secret for JWT authentication (requires at least 12 characters).

LLM API Selection

ConfigurationExample ValueDescription
LLM_PROVIDER'openai'Provider for the LLM API.
OPEN_AI_KEYsk-xxxxAPI key for OpenAI.
OPEN_MODEL_PREF'gpt-4o'Preferred OpenAI model.
GEMINI_API_KEYsk-gemini-xxxxAPI key for Gemini.
GEMINI_LLM_MODEL_PREF'gemini-pro'Preferred Gemini model.
AZURE_OPENAI_ENDPOINThttps://replace-me.openai.azure.com/Azure OpenAI endpoint.
AZURE_OPENAI_KEY50f.. API key for Azure OpenAI.
ANTHROPIC_API_KEYsk-ant-xxxxAPI key for Anthropic.
ANTHROPIC_MODEL_PREF'claude-2'Preferred Anthropic model.
LMSTUDIO_BASE_PATH'http://your-server:1234/v1'Base path for LMStudio API.
LMSTUDIO_MODEL_PREF'Loaded from Chat UI'Preferred LMStudio model.
LMSTUDIO_MODEL_TOKEN_LIMIT4096Token limit for LMStudio model.
LOCAL_AI_BASE_PATH'http://host.docker.internal:8080/v1'Base path for Local AI API.
LOCAL_AI_MODEL_PREF'luna-ai-llama2'Preferred Local AI model.
LOCAL_AI_MODEL_TOKEN_LIMIT4096Token limit for Local AI model.
LOCAL_AI_API_KEY"sk-123abc"API key for Local AI.
OLLAMA_BASE_PATH'http://host.docker.internal:11434'Base path for Ollama API.
OLLAMA_MODEL_PREF'llama2'Preferred Ollama model.
OLLAMA_MODEL_TOKEN_LIMIT4096Token limit for Ollama model.
TOGETHER_AI_API_KEY'my-together-ai-key'API key for Together AI.
TOGETHER_AI_MODEL_PREF'mistralai/Mixtral-8x7B-Instruct-v0.1'Preferred Together AI model.
MISTRAL_API_KEY'example-mistral-ai-api-key'API key for Mistral.
MISTRAL_MODEL_PREF'mistral-tiny'Preferred Mistral model.
PERPLEXITY_API_KEY'my-perplexity-key'API key for Perplexity.
PERPLEXITY_MODEL_PREF'codellama-34b-instruct'Preferred Perplexity model.
OPENROUTER_API_KEY'my-openrouter-key'API key for OpenRouter.
OPENROUTER_MODEL_PREF'openrouter/auto'Preferred OpenRouter model.
HUGGING_FACE_LLM_ENDPOINThttps://uuid-here.us-east-1.aws.endpoints.huggingface.cloudEndpoint for Hugging Face LLM.
HUGGING_FACE_LLM_API_KEYhf_xxxxxxAPI key for Hugging Face LLM.
HUGGING_FACE_LLM_TOKEN_LIMIT8000Token limit for Hugging Face LLM.
GROQ_API_KEYgsk_abcxyzAPI key for Groq.
GROQ_MODEL_PREF'llama3-8b-8192'Preferred Groq model.
`

Deploy anything-llm with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has anything-llm 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 chartanything-llm is pinned at v1.1.5 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