Skip to content

Commit d65c658

Browse files
committed
feature: allow for env mappings in the embeddings section
1 parent 34f1e91 commit d65c658

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

charts/trieve/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: trieve
33
description: Helm chart expressing Trieve deployment without any dependencies
44
type: application
5-
version: 0.2.38
5+
version: 0.2.39
66
appVersion: "0.12.0"
77
dependencies:
88
- name: qdrant

charts/trieve/templates/deployments/embeddings-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ spec:
4646
path: "/"
4747
port: 80
4848
image: {{ printf "%s/%s:%s" $service.registry $service.repository $service.tag }}
49+
{{- if $service.env }}
50+
env:
51+
{{- range $service.env }}
52+
- {{ . | toYaml | nindent 14 }}
53+
{{- end }}
54+
{{- end }}
4955
args:
5056
{{ (concat (list "--model-id" $service.model "--revision" $service.revision) $service.args) | toJson }}
5157
ports:

charts/trieve/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,9 @@ embeddings:
437437
repository: text-embeddings-inference
438438
useGpu: true
439439
args: []
440+
# env:
441+
# - name: HF_TOKEN
442+
# value: "HUGGINGFACE_MODEL_TOKEN"
440443
- name: splade-doc
441444
model: naver/efficient-splade-VI-BT-large-doc
442445
tag: "89-1.4"

0 commit comments

Comments
 (0)