Skip to content

Commit b70b914

Browse files
authored
helm-chart/data-prep: Add the missing config for dataprep-redis (#374)
There are some config missing but required by get_file/delete_file API, add them for functional usage. Please refer to the following link: https://github.com/opea-project/GenAIComps/blob/\ 84a7e573b88eed6d263b3ba164361ea06fccc46d/comps/dataprep/redis/\ langchain/config.py#L60 Signed-off-by: Cathy Zhang <[email protected]>
1 parent 65b04dc commit b70b914

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

helm-charts/common/data-prep/templates/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ data:
2020
REDIS_URL: "redis://{{ .Release.Name }}-redis-vector-db:6379"
2121
{{- end }}
2222
INDEX_NAME: {{ .Values.INDEX_NAME | quote }}
23+
KEY_INDEX_NAME: {{ .Values.KEY_INDEX_NAME | quote }}
24+
SEARCH_BATCH_SIZE: {{ .Values.SEARCH_BATCH_SIZE | quote }}
2325
HUGGINGFACEHUB_API_TOKEN: {{ .Values.global.HUGGINGFACEHUB_API_TOKEN | quote}}
2426
HF_HOME: "/tmp/.cache/huggingface"
2527
{{- if .Values.global.HF_ENDPOINT }}

helm-charts/common/data-prep/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ EMBED_MODEL: ""
8888
# redis DB service URL, e.g. redis://<service-name>:<port>
8989
REDIS_URL: ""
9090
INDEX_NAME: "rag-redis"
91+
KEY_INDEX_NAME: "file-keys"
92+
SEARCH_BATCH_SIZE: 10
9193

9294
global:
9395
http_proxy: ""

microservices-connector/config/manifests/data-prep.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ data:
1818
EMBED_MODEL: ""
1919
REDIS_URL: "redis://data-prep-redis-vector-db:6379"
2020
INDEX_NAME: "rag-redis"
21+
KEY_INDEX_NAME: "file-keys"
22+
SEARCH_BATCH_SIZE: "10"
2123
HUGGINGFACEHUB_API_TOKEN: "insert-your-huggingface-token-here"
2224
HF_HOME: "/tmp/.cache/huggingface"
2325
http_proxy: ""

0 commit comments

Comments
 (0)