Skip to content

Commit

Permalink
[nl server] get default and enabled indexes from deployment (#4243)
Browse files Browse the repository at this point in the history
Get default index and enabled indexes from deployment because this could
be instance specific
  • Loading branch information
chejennifer authored May 15, 2024
1 parent f7433df commit 3a2854f
Show file tree
Hide file tree
Showing 21 changed files with 384 additions and 223 deletions.
2 changes: 1 addition & 1 deletion deploy/helm_charts/dc_website/templates/config_maps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ metadata:
data:
embeddings.yaml: {{ required "NL embeddings file is required" .Values.nl.embeddings | quote }}
models.yaml: {{ required "NL models file is required" .Values.nl.models | quote }}
vertex_ai_models.json: {{ .Values.nl.vertex_ai_models | toJson | quote }}
embeddings_spec.json: {{ .Values.nl.embeddingsSpec | toJson | quote }}
{{- end }}

{{- if .Values.website.redis.enabled }}
Expand Down
6 changes: 5 additions & 1 deletion deploy/helm_charts/dc_website/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ nl:
models:
memory: "2G"
workers: 1
vertex_ai_models:
embeddingsSpec:
defaultIndex: ""
enabledIndexes: []
vertexAIModels:
enableReranking: false


###############################################################################
Expand Down
55 changes: 34 additions & 21 deletions deploy/helm_charts/envs/autopush.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,40 @@ serviceAccount:

nl:
enabled: true
vertex_ai_models:
dc-all-minilm-l6-v2-model:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "8518340991868993536"
uae-large-v1-model:
project_id: datcom-nl
location: us-central1
prediction_endpoint_id: "8110162693219942400"
sfr-embedding-mistral-model:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "224012300019826688"
cross-encoder-ms-marco-miniilm-l6-v2:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "3977846152316846080"
cross-encoder-mxbai-rerank-base-v1:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "284894457873039360"
embeddingsSpec:
defaultIndex: "medium_ft"
enabledIndexes: [
"base_uae_mem",
"bio_ft",
"medium_ft",
"medium_lance_ft",
"medium_vertex_ft",
"medium_vertex_mistral",
"sdg_ft",
"undata_ft",
]
vertexAIModels:
dc-all-minilm-l6-v2-model:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "8518340991868993536"
uae-large-v1-model:
project_id: datcom-nl
location: us-central1
prediction_endpoint_id: "8110162693219942400"
sfr-embedding-mistral-model:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "224012300019826688"
cross-encoder-ms-marco-miniilm-l6-v2:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "3977846152316846080"
cross-encoder-mxbai-rerank-base-v1:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "284894457873039360"
enableReranking: true

serviceGroups:
recon: null
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/bard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ nl:
enabled: true
memory: "10G"
workers: 3
embeddingsSpec:
defaultIndex: "medium_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]

nodejs:
enabled: true
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/biomedical.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@ serviceGroups:

nl:
enabled: true
embeddingsSpec:
defaultIndex: "bio_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/climate_trace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ serviceAccount:

nl:
enabled: true
embeddingsSpec:
defaultIndex: "medium_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]

serviceGroups:
recon: null
Expand Down
55 changes: 34 additions & 21 deletions deploy/helm_charts/envs/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,40 @@ serviceGroups:

nl:
enabled: true
vertex_ai_models:
dc-all-minilm-l6-v2-model:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "8518340991868993536"
uae-large-v1-model:
project_id: datcom-nl
location: us-central1
prediction_endpoint_id: "1400502935879680000"
sfr-embedding-mistral-model:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "224012300019826688"
cross-encoder-ms-marco-miniilm-l6-v2:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "3977846152316846080"
cross-encoder-mxbai-rerank-base-v1:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "284894457873039360"
embeddingsSpec:
defaultIndex: "medium_ft"
enabledIndexes: [
"base_uae_mem",
"bio_ft",
"medium_ft",
"medium_lance_ft",
"medium_vertex_ft",
"medium_vertex_mistral",
"sdg_ft",
"undata_ft",
]
vertexAIModels:
dc-all-minilm-l6-v2-model:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "8518340991868993536"
uae-large-v1-model:
project_id: datcom-nl
location: us-central1
prediction_endpoint_id: "8110162693219942400"
sfr-embedding-mistral-model:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "224012300019826688"
cross-encoder-ms-marco-miniilm-l6-v2:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "3977846152316846080"
cross-encoder-mxbai-rerank-base-v1:
project_id: datcom-website-dev
location: us-central1
prediction_endpoint_id: "284894457873039360"
enableReranking: true

nodejs:
enabled: true
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ ingress:
certName: website-ssl-certificate
nl:
enabled: true
embeddingsSpec:
defaultIndex: "medium_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]

serviceGroups:
recon: null
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/magic_eye.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ ingress:

nl:
enabled: true
embeddingsSpec:
defaultIndex: "medium_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]

serviceGroups:
recon: null
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ serviceAccount:

nl:
enabled: true
embeddingsSpec:
defaultIndex: "medium_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]

serviceGroups:
recon: null
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ serviceAccount:

nl:
enabled: true
embeddingsSpec:
defaultIndex: "medium_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]

serviceGroups:
recon: null
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/unsdg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ ingress:

nl:
enabled: true
embeddingsSpec:
defaultIndex: "sdg_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]

serviceGroups:
recon: null
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/unsdg_staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ mixer:

nl:
enabled: true
embeddingsSpec:
defaultIndex: "sdg_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]

serviceGroups:
recon: null
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm_charts/envs/worldbank.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ serviceGroups:
memoryLimit: "8G"
nl:
enabled: true
embeddingsSpec:
defaultIndex: "medium_ft"
enabledIndexes: [
"bio_ft"
"medium_ft",
"sdg_ft",
"undata_ft",
]

svg:
blocklistFile: ["dc/g/Uncategorized", "oecd/g/OECD"]
Loading

0 comments on commit 3a2854f

Please sign in to comment.