Skip to content

Commit

Permalink
helm-chart/common: Add logging config for service components
Browse files Browse the repository at this point in the history
Logging is added in GenAIComps to print input/output, add it here for
components debugging.

Signed-off-by: Cathy Zhang <[email protected]>
  • Loading branch information
bjzhjing committed Sep 3, 2024
1 parent 987870f commit 70bb238
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm-charts/common/asr/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ data:
{{- else }}
no_proxy: {{ .Values.global.no_proxy | quote }}
{{- end }}
LOGFLAG: {{ .Values.LOGFLAG | quote }}
3 changes: 3 additions & 0 deletions helm-charts/common/asr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ autodependency:

replicaCount: 1

# add logging, set to true will enable it and get the output
LOGFLAG: false

ASR_ENDPOINT: ""

image:
Expand Down
1 change: 1 addition & 0 deletions helm-charts/common/data-prep/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ data:
LANGCHAIN_TRACING_V2: {{ .Values.global.LANGCHAIN_TRACING_V2 | quote }}
LANGCHAIN_API_KEY: {{ .Values.global.LANGCHAIN_API_KEY | quote }}
LANGCHAIN_PROJECT: "opea-dataprep-service"
LOGFLAG: {{ .Values.LOGFLAG | quote }}
3 changes: 3 additions & 0 deletions helm-charts/common/data-prep/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ tolerations: []

affinity: {}

# add logging, set to true will enable it and get the output
LOGFLAG: false

# text embedding inference service URL, e.g. http://<service-name>:<port>
TEI_EMBEDDING_ENDPOINT: ""

Expand Down
1 change: 1 addition & 0 deletions helm-charts/common/embedding-usvc/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ data:
LANGCHAIN_TRACING_V2: {{ .Values.global.LANGCHAIN_TRACING_V2 | quote }}
LANGCHAIN_API_KEY: {{ .Values.global.LANGCHAIN_API_KEY }}
LANGCHAIN_PROJECT: "opea-embedding-service"
LOGFLAG: {{ .Values.LOGFLAG | quote }}
3 changes: 3 additions & 0 deletions helm-charts/common/embedding-usvc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ autodependency:

replicaCount: 1

# add logging, set to true will enable it and get the output
LOGFLAG: false

TEI_EMBEDDING_ENDPOINT: ""
image:
repository: opea/embedding-tei
Expand Down
1 change: 1 addition & 0 deletions helm-charts/common/llm-uservice/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ data:
LANGCHAIN_TRACING_V2: {{ .Values.global.LANGCHAIN_TRACING_V2 | quote }}
LANGCHAIN_API_KEY: {{ .Values.global.LANGCHAIN_API_KEY }}
LANGCHAIN_PROJECT: "opea-llm-uservice"
LOGFLAG: {{ .Values.LOGFLAG | quote }}
3 changes: 3 additions & 0 deletions helm-charts/common/llm-uservice/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ autodependency:
replicaCount: 1
TGI_LLM_ENDPOINT: ""

# add logging, set to true will enable it and get the output
LOGFLAG: false

image:
repository: opea/llm-tgi
pullPolicy: IfNotPresent
Expand Down
1 change: 1 addition & 0 deletions helm-charts/common/reranking-usvc/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ data:
LANGCHAIN_TRACING_V2: {{ .Values.global.LANGCHAIN_TRACING_V2 | quote }}
LANGCHAIN_API_KEY: {{ .Values.global.LANGCHAIN_API_KEY | quote }}
LANGCHAIN_PROJECT: "opea-reranking-service"
LOGFLAG: {{ .Values.LOGFLAG | quote }}
3 changes: 3 additions & 0 deletions helm-charts/common/reranking-usvc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ autodependency:

replicaCount: 1

# add logging, set to true will enable it and get the output
LOGFLAG: false

TEI_RERANKING_ENDPOINT: ""
image:
repository: opea/reranking-tei
Expand Down
1 change: 1 addition & 0 deletions helm-charts/common/retriever-usvc/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ data:
LANGCHAIN_PROJECT: "opea-retriever-service"
HF_HOME: "/tmp/.cache/huggingface"
HUGGINGFACEHUB_API_TOKEN: {{ .Values.global.HUGGINGFACEHUB_API_TOKEN | quote}}
LOGFLAG: {{ .Values.LOGFLAG | quote }}
3 changes: 3 additions & 0 deletions helm-charts/common/retriever-usvc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ autodependency:

replicaCount: 1

# add logging, set to true will enable it and get the output
LOGFLAG: false

TEI_EMBEDDING_ENDPOINT: ""
EMBED_MODEL: ""

Expand Down
1 change: 1 addition & 0 deletions helm-charts/common/tts/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ data:
{{- else }}
no_proxy: {{ .Values.global.no_proxy | quote }}
{{- end }}
LOGFLAG: {{ .Values.LOGFLAG | quote }}
3 changes: 3 additions & 0 deletions helm-charts/common/tts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ autodependency:

replicaCount: 1

# add logging, set to true will enable it and get the output
LOGFLAG: false

TTS_ENDPOINT: ""

image:
Expand Down
1 change: 1 addition & 0 deletions helm-charts/common/web-retriever/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ data:
no_proxy: {{ .Values.global.no_proxy | quote }}
{{- end }}
HF_HOME: "/tmp/.cache/huggingface"
LOGFLAG: {{ .Values.LOGFLAG | quote }}
3 changes: 3 additions & 0 deletions helm-charts/common/web-retriever/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ autodependency:

replicaCount: 1

# add logging, set to true will enable it and get the output
LOGFLAG: false

TEI_EMBEDDING_ENDPOINT: ""
GOOGLE_API_KEY: ""
GOOGLE_CSE_ID: ""
Expand Down

0 comments on commit 70bb238

Please sign in to comment.