Skip to content

Commit

Permalink
helm-chart/common: Add logging config for service components (#375)
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 authored Sep 4, 2024
1 parent 6442127 commit b80ae50
Show file tree
Hide file tree
Showing 25 changed files with 49 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 }}
4 changes: 4 additions & 0 deletions helm-charts/common/asr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ autodependency:

replicaCount: 1

# Set it as a non-null string, such as true, if you want to enable logging facility,
# otherwise, keep it as "" to disable it.
LOGFLAG: ""

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 @@ -37,3 +37,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 }}
4 changes: 4 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,10 @@ tolerations: []

affinity: {}

# Set it as a non-null string, such as true, if you want to enable logging facility,
# otherwise, keep it as "" to disable it.
LOGFLAG: ""

# 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 }}
4 changes: 4 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,10 @@ autodependency:

replicaCount: 1

# Set it as a non-null string, such as true, if you want to enable logging facility,
# otherwise, keep it as "" to disable it.
LOGFLAG: ""

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 }}
4 changes: 4 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,10 @@ autodependency:
replicaCount: 1
TGI_LLM_ENDPOINT: ""

# Set it as a non-null string, such as true, if you want to enable logging facility,
# otherwise, keep it as "" to disable it.
LOGFLAG: ""

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 }}
4 changes: 4 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,10 @@ autodependency:

replicaCount: 1

# Set it as a non-null string, such as true, if you want to enable logging facility,
# otherwise, keep it as "" to disable it.
LOGFLAG: ""

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 }}
4 changes: 4 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,10 @@ autodependency:

replicaCount: 1

# Set it as a non-null string, such as true, if you want to enable logging facility,
# otherwise, keep it as "" to disable it.
LOGFLAG: ""

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 }}
4 changes: 4 additions & 0 deletions helm-charts/common/tts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ autodependency:

replicaCount: 1

# Set it as a non-null string, such as true, if you want to enable logging facility,
# otherwise, keep it as "" to disable it.
LOGFLAG: ""

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 }}
4 changes: 4 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,10 @@ autodependency:

replicaCount: 1

# Set it as a non-null string, such as true, if you want to enable logging facility,
# otherwise, keep it as "" to disable it.
LOGFLAG: ""

TEI_EMBEDDING_ENDPOINT: ""
GOOGLE_API_KEY: ""
GOOGLE_CSE_ID: ""
Expand Down
1 change: 1 addition & 0 deletions microservices-connector/config/manifests/asr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ data:
http_proxy: ""
https_proxy: ""
no_proxy: ""
LOGFLAG: ""
---
# Source: asr/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
Expand Down
1 change: 1 addition & 0 deletions microservices-connector/config/manifests/data-prep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ data:
LANGCHAIN_TRACING_V2: "false"
LANGCHAIN_API_KEY: "insert-your-langchain-key-here"
LANGCHAIN_PROJECT: "opea-dataprep-service"
LOGFLAG: ""
---
# Source: data-prep/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ data:
LANGCHAIN_TRACING_V2: "false"
LANGCHAIN_API_KEY: insert-your-langchain-key-here
LANGCHAIN_PROJECT: "opea-llm-uservice"
LOGFLAG: ""
---
# Source: llm-uservice/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ data:
LANGCHAIN_TRACING_V2: "false"
LANGCHAIN_API_KEY: insert-your-langchain-key-here
LANGCHAIN_PROJECT: "opea-embedding-service"
LOGFLAG: ""
---
# Source: embedding-usvc/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
Expand Down
1 change: 1 addition & 0 deletions microservices-connector/config/manifests/llm-uservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ data:
LANGCHAIN_TRACING_V2: "false"
LANGCHAIN_API_KEY: insert-your-langchain-key-here
LANGCHAIN_PROJECT: "opea-llm-uservice"
LOGFLAG: ""
---
# Source: llm-uservice/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ data:
LANGCHAIN_TRACING_V2: "false"
LANGCHAIN_API_KEY: "insert-your-langchain-key-here"
LANGCHAIN_PROJECT: "opea-reranking-service"
LOGFLAG: ""
---
# Source: reranking-usvc/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ data:
LANGCHAIN_PROJECT: "opea-retriever-service"
HF_HOME: "/tmp/.cache/huggingface"
HUGGINGFACEHUB_API_TOKEN: "insert-your-huggingface-token-here"
LOGFLAG: ""
---
# Source: retriever-usvc/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
Expand Down
1 change: 1 addition & 0 deletions microservices-connector/config/manifests/tts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ data:
http_proxy: ""
https_proxy: ""
no_proxy: ""
LOGFLAG: ""
---
# Source: tts/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ data:
https_proxy: ""
no_proxy: ""
HF_HOME: "/tmp/.cache/huggingface"
LOGFLAG: ""
---
# Source: web-retriever/templates/service.yaml
# Copyright (C) 2024 Intel Corporation
Expand Down

0 comments on commit b80ae50

Please sign in to comment.