Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .cicd/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ function check_creates_template() {
check_modules "--set modules.reranker-jinaai.enabled=true --set modules.reranker-jinaai.apiKey=apiKey" "value: reranker-jinaai"
check_modules "--set modules.text2vec-morph.enabled=true" "value: text2vec-morph"
check_modules "--set modules.text2vec-morph.enabled=true --set modules.text2vec-morph.apiKey=apiKey" "value: text2vec-morph"
check_modules "--set modules.text2vec-digitalocean.enabled=true" "value: text2vec-digitalocean"
check_modules "--set modules.text2vec-digitalocean.enabled=true --set modules.text2vec-digitalocean.apiKey=apiKey" "value: text2vec-digitalocean"
check_modules "--set modules.multi2vec-jinaai.enabled=true" "value: multi2vec-jinaai"
check_modules "--set modules.multi2vec-jinaai.enabled=true --set modules.multi2vec-jinaai.apiKey=apiKey" "value: multi2vec-jinaai"
check_modules "--set modules.multi2multivec-jinaai.enabled=true" "value: multi2multivec-jinaai"
Expand Down Expand Up @@ -217,6 +219,7 @@ function check_creates_template() {
check_modules "--set modules.reranker-contextualai.enabled=true --set modules.generative-contextualai.enabled=true" "value: generative-contextualai,reranker-contextualai"
check_string_existence "--set modules.generative-xai.enabled=true --set modules.generative-xai.apiKey=apiKey" "name: XAI_APIKEY"
check_string_existence "--set modules.text2vec-morph.enabled=true --set modules.text2vec-morph.apiKey=apiKey" "name: MORPH_APIKEY"
check_string_existence "--set modules.text2vec-digitalocean.enabled=true --set modules.text2vec-digitalocean.apiKey=apiKey" "name: DIGITALOCEAN_APIKEY"
check_string_existence "--set modules.text2vec-openai.enabled=true --set modules.text2vec-openai.azureApiKey=azureApiKey" "name: AZURE_APIKEY"
check_string_existence "--set modules.qna-openai.enabled=true --set modules.qna-openai.azureApiKey=azureApiKey" "name: AZURE_APIKEY"
check_string_existence "--set modules.generative-openai.enabled=true --set modules.generative-openai.azureApiKey=azureApiKey" "name: AZURE_APIKEY"
Expand Down
3 changes: 3 additions & 0 deletions weaviate/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
{{- if (index .Values "modules" "text2vec-morph" "enabled") -}}
{{ $modules = append $modules "text2vec-morph" }}
{{- end -}}
{{- if (index .Values "modules" "text2vec-digitalocean" "enabled") -}}
{{ $modules = append $modules "text2vec-digitalocean" }}
{{- end -}}
{{- if (index .Values "modules" "ref2vec-centroid" "enabled") -}}
{{ $modules = append $modules "ref2vec-centroid" }}
{{- end -}}
Expand Down
12 changes: 12 additions & 0 deletions weaviate/templates/apiKeyDigitalOceanSecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{ if and (index .Values "modules" "text2vec-digitalocean" "enabled") (index .Values "modules" "text2vec-digitalocean" "apiKey") }}
apiVersion: v1
kind: Secret
metadata:
name: weaviate-digitalocean
labels:
app.kubernetes.io/name: weaviate
app.kubernetes.io/managed-by: helm
type: Opaque
data:
apiKey: {{ index .Values "modules" "text2vec-digitalocean" "apiKey" | b64enc }}
{{ end }}
7 changes: 7 additions & 0 deletions weaviate/templates/weaviateStatefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,13 @@ spec:
name: weaviate-morph
key: apiKey
{{- end }}
{{- if and (index .Values "modules" "text2vec-digitalocean" "enabled") (index .Values "modules" "text2vec-digitalocean" "apiKey") }}
- name: DIGITALOCEAN_APIKEY
valueFrom:
secretKeyRef:
name: weaviate-digitalocean
key: apiKey
{{- end }}
{{- if and (index .Values "modules" "generative-friendliai" "enabled") (index .Values "modules" "generative-friendliai" "token") }}
- name: FRIENDLI_TOKEN
valueFrom:
Expand Down
14 changes: 14 additions & 0 deletions weaviate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1291,6 +1291,20 @@ modules:
# an environment variable
apiKey: ''

# The text2vec-digitalocean module uses DigitalOcean Embeddings API
# to dynamically compute vector embeddings based on the
# sentence's context.
# More information about DigitalOcean Embeddings API can be found here:
# https://docs.digitalocean.com/products/gradient-ai-platform/
text2vec-digitalocean:

# enable if you want to use DigitalOcean module
enabled: false

# Set your DigitalOcean API Key to be passed to Weaviate pod as
# an environment variable
apiKey: ''

# The multi2vec-clip modules uses CLIP transformers to vectorize both images
# and text in the same vector space. It is typically slow(er) on CPUs and should
# run with CUDA-enabled GPUs for optimal performance.
Expand Down
Loading