diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.json index 5830b20555..7bb582120b 100644 --- a/web/public/locales/en/views/settings.json +++ b/web/public/locales/en/views/settings.json @@ -1820,7 +1820,8 @@ "mixedTypesSuggestion": "All detectors must use the same type. Remove existing detectors or select {{type}}." }, "semanticSearch": { - "jinav2SmallModelSize": "The 'small' size with the Jina V2 model has high RAM and inference cost. The 'large' model with a discrete GPU is recommended." + "jinav2SmallModelSize": "The 'small' size with the Jina V2 model has high RAM and inference cost. The 'large' model with a discrete GPU is recommended.", + "modelSizeIgnoredForProvider": "Model size only applies to the built-in Jina models. This value will be ignored when using a GenAI embedding provider." } } } diff --git a/web/src/components/config-form/section-configs/semantic_search.ts b/web/src/components/config-form/section-configs/semantic_search.ts index 884401b7d2..3f9bbfaec1 100644 --- a/web/src/components/config-form/section-configs/semantic_search.ts +++ b/web/src/components/config-form/section-configs/semantic_search.ts @@ -29,6 +29,22 @@ const semanticSearch: SectionConfigOverrides = { ctx.formData?.model === "jinav2" && ctx.formData?.model_size === "small", }, + { + key: "model-size-ignored-for-provider", + field: "model_size", + messageKey: "configMessages.semanticSearch.modelSizeIgnoredForProvider", + severity: "info", + position: "after", + condition: (ctx) => { + const model = ctx.formData?.model; + return ( + typeof model === "string" && + model !== "" && + model !== "jinav1" && + model !== "jinav2" + ); + }, + }, ], uiSchema: { model: {