From 70bb238fce844a921e448ec29518105de9d6fcd2 Mon Sep 17 00:00:00 2001 From: Cathy Zhang Date: Sun, 1 Sep 2024 22:23:26 -0700 Subject: [PATCH] helm-chart/common: Add logging config for service components Logging is added in GenAIComps to print input/output, add it here for components debugging. Signed-off-by: Cathy Zhang --- helm-charts/common/asr/templates/configmap.yaml | 1 + helm-charts/common/asr/values.yaml | 3 +++ helm-charts/common/data-prep/templates/configmap.yaml | 1 + helm-charts/common/data-prep/values.yaml | 3 +++ helm-charts/common/embedding-usvc/templates/configmap.yaml | 1 + helm-charts/common/embedding-usvc/values.yaml | 3 +++ helm-charts/common/llm-uservice/templates/configmap.yaml | 1 + helm-charts/common/llm-uservice/values.yaml | 3 +++ helm-charts/common/reranking-usvc/templates/configmap.yaml | 1 + helm-charts/common/reranking-usvc/values.yaml | 3 +++ helm-charts/common/retriever-usvc/templates/configmap.yaml | 1 + helm-charts/common/retriever-usvc/values.yaml | 3 +++ helm-charts/common/tts/templates/configmap.yaml | 1 + helm-charts/common/tts/values.yaml | 3 +++ helm-charts/common/web-retriever/templates/configmap.yaml | 1 + helm-charts/common/web-retriever/values.yaml | 3 +++ 16 files changed, 32 insertions(+) diff --git a/helm-charts/common/asr/templates/configmap.yaml b/helm-charts/common/asr/templates/configmap.yaml index 19eb0cf7c..965e98fc2 100644 --- a/helm-charts/common/asr/templates/configmap.yaml +++ b/helm-charts/common/asr/templates/configmap.yaml @@ -20,3 +20,4 @@ data: {{- else }} no_proxy: {{ .Values.global.no_proxy | quote }} {{- end }} + LOGFLAG: {{ .Values.LOGFLAG | quote }} diff --git a/helm-charts/common/asr/values.yaml b/helm-charts/common/asr/values.yaml index f8597c91b..f5d20fd3f 100644 --- a/helm-charts/common/asr/values.yaml +++ b/helm-charts/common/asr/values.yaml @@ -10,6 +10,9 @@ autodependency: replicaCount: 1 +# add logging, set to true will enable it and get the output +LOGFLAG: false + ASR_ENDPOINT: "" image: diff --git a/helm-charts/common/data-prep/templates/configmap.yaml b/helm-charts/common/data-prep/templates/configmap.yaml index 34a111df7..0674e2b3e 100644 --- a/helm-charts/common/data-prep/templates/configmap.yaml +++ b/helm-charts/common/data-prep/templates/configmap.yaml @@ -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 }} diff --git a/helm-charts/common/data-prep/values.yaml b/helm-charts/common/data-prep/values.yaml index 458d7c0d5..2ef4e342a 100644 --- a/helm-charts/common/data-prep/values.yaml +++ b/helm-charts/common/data-prep/values.yaml @@ -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://: TEI_EMBEDDING_ENDPOINT: "" diff --git a/helm-charts/common/embedding-usvc/templates/configmap.yaml b/helm-charts/common/embedding-usvc/templates/configmap.yaml index a7566b7b0..28da012e3 100644 --- a/helm-charts/common/embedding-usvc/templates/configmap.yaml +++ b/helm-charts/common/embedding-usvc/templates/configmap.yaml @@ -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 }} diff --git a/helm-charts/common/embedding-usvc/values.yaml b/helm-charts/common/embedding-usvc/values.yaml index f3b1f9e89..62b1c804c 100644 --- a/helm-charts/common/embedding-usvc/values.yaml +++ b/helm-charts/common/embedding-usvc/values.yaml @@ -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 diff --git a/helm-charts/common/llm-uservice/templates/configmap.yaml b/helm-charts/common/llm-uservice/templates/configmap.yaml index 4feeb857c..8e734b652 100644 --- a/helm-charts/common/llm-uservice/templates/configmap.yaml +++ b/helm-charts/common/llm-uservice/templates/configmap.yaml @@ -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 }} diff --git a/helm-charts/common/llm-uservice/values.yaml b/helm-charts/common/llm-uservice/values.yaml index 759726945..5f9f5932e 100644 --- a/helm-charts/common/llm-uservice/values.yaml +++ b/helm-charts/common/llm-uservice/values.yaml @@ -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 diff --git a/helm-charts/common/reranking-usvc/templates/configmap.yaml b/helm-charts/common/reranking-usvc/templates/configmap.yaml index c805ba09c..d63c53ee2 100644 --- a/helm-charts/common/reranking-usvc/templates/configmap.yaml +++ b/helm-charts/common/reranking-usvc/templates/configmap.yaml @@ -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 }} diff --git a/helm-charts/common/reranking-usvc/values.yaml b/helm-charts/common/reranking-usvc/values.yaml index c011cf309..33d78210e 100644 --- a/helm-charts/common/reranking-usvc/values.yaml +++ b/helm-charts/common/reranking-usvc/values.yaml @@ -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 diff --git a/helm-charts/common/retriever-usvc/templates/configmap.yaml b/helm-charts/common/retriever-usvc/templates/configmap.yaml index 8b06ab9d1..b2be3834f 100644 --- a/helm-charts/common/retriever-usvc/templates/configmap.yaml +++ b/helm-charts/common/retriever-usvc/templates/configmap.yaml @@ -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 }} diff --git a/helm-charts/common/retriever-usvc/values.yaml b/helm-charts/common/retriever-usvc/values.yaml index 16186a061..b235c1c74 100644 --- a/helm-charts/common/retriever-usvc/values.yaml +++ b/helm-charts/common/retriever-usvc/values.yaml @@ -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: "" diff --git a/helm-charts/common/tts/templates/configmap.yaml b/helm-charts/common/tts/templates/configmap.yaml index 5afcee748..96fd677e7 100644 --- a/helm-charts/common/tts/templates/configmap.yaml +++ b/helm-charts/common/tts/templates/configmap.yaml @@ -20,3 +20,4 @@ data: {{- else }} no_proxy: {{ .Values.global.no_proxy | quote }} {{- end }} + LOGFLAG: {{ .Values.LOGFLAG | quote }} diff --git a/helm-charts/common/tts/values.yaml b/helm-charts/common/tts/values.yaml index 56f5792c7..f96b2b04e 100644 --- a/helm-charts/common/tts/values.yaml +++ b/helm-charts/common/tts/values.yaml @@ -10,6 +10,9 @@ autodependency: replicaCount: 1 +# add logging, set to true will enable it and get the output +LOGFLAG: false + TTS_ENDPOINT: "" image: diff --git a/helm-charts/common/web-retriever/templates/configmap.yaml b/helm-charts/common/web-retriever/templates/configmap.yaml index 4b2d94d85..a3ac0f9ac 100644 --- a/helm-charts/common/web-retriever/templates/configmap.yaml +++ b/helm-charts/common/web-retriever/templates/configmap.yaml @@ -24,3 +24,4 @@ data: no_proxy: {{ .Values.global.no_proxy | quote }} {{- end }} HF_HOME: "/tmp/.cache/huggingface" + LOGFLAG: {{ .Values.LOGFLAG | quote }} diff --git a/helm-charts/common/web-retriever/values.yaml b/helm-charts/common/web-retriever/values.yaml index 156eb0db9..c12a2fa0b 100644 --- a/helm-charts/common/web-retriever/values.yaml +++ b/helm-charts/common/web-retriever/values.yaml @@ -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: ""