Skip to content

Commit

Permalink
helm-chart/data-prep: Add the missing config for dataprep-redis (#374)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bjzhjing authored Sep 3, 2024
1 parent 65b04dc commit b70b914
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-charts/common/data-prep/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ data:
REDIS_URL: "redis://{{ .Release.Name }}-redis-vector-db:6379"
{{- end }}
INDEX_NAME: {{ .Values.INDEX_NAME | quote }}
KEY_INDEX_NAME: {{ .Values.KEY_INDEX_NAME | quote }}
SEARCH_BATCH_SIZE: {{ .Values.SEARCH_BATCH_SIZE | quote }}
HUGGINGFACEHUB_API_TOKEN: {{ .Values.global.HUGGINGFACEHUB_API_TOKEN | quote}}
HF_HOME: "/tmp/.cache/huggingface"
{{- if .Values.global.HF_ENDPOINT }}
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/common/data-prep/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ EMBED_MODEL: ""
# redis DB service URL, e.g. redis://<service-name>:<port>
REDIS_URL: ""
INDEX_NAME: "rag-redis"
KEY_INDEX_NAME: "file-keys"
SEARCH_BATCH_SIZE: 10

global:
http_proxy: ""
Expand Down
2 changes: 2 additions & 0 deletions microservices-connector/config/manifests/data-prep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ data:
EMBED_MODEL: ""
REDIS_URL: "redis://data-prep-redis-vector-db:6379"
INDEX_NAME: "rag-redis"
KEY_INDEX_NAME: "file-keys"
SEARCH_BATCH_SIZE: "10"
HUGGINGFACEHUB_API_TOKEN: "insert-your-huggingface-token-here"
HF_HOME: "/tmp/.cache/huggingface"
http_proxy: ""
Expand Down

0 comments on commit b70b914

Please sign in to comment.