diff --git a/lib/routes-ui.js b/lib/routes-ui.js index b8b57fb6..b9fd74ec 100644 --- a/lib/routes-ui.js +++ b/lib/routes-ui.js @@ -7528,6 +7528,7 @@ ${Buffer.from(data.content, 'base64url').toString('base64')} documentStoreEnabled: await settings.get('documentStoreEnabled'), hasOpenAiAPIKey: !!(await settings.get('openAiAPIKey')), + indexInfo: await settings.get('embeddings:index'), openAiModels: pfStructuredClone(OPEN_AI_MODELS_CHAT).map(model => { model.selected = model.key === documentStoreChatModel; @@ -7570,6 +7571,7 @@ ${Buffer.from(data.content, 'base64url').toString('base64')} documentStoreEnabled: await settings.get('documentStoreEnabled'), hasOpenAiAPIKey: !!(await settings.get('openAiAPIKey')), + indexInfo: await settings.get('embeddings:index'), openAiModels: pfStructuredClone(OPEN_AI_MODELS_CHAT).map(model => { model.selected = model.key === request.payload.documentStoreChatModel; @@ -7614,6 +7616,7 @@ ${Buffer.from(data.content, 'base64url').toString('base64')} documentStoreEnabled: await settings.get('documentStoreEnabled'), hasOpenAiAPIKey: !!(await settings.get('openAiAPIKey')), + indexInfo: await settings.get('embeddings:index'), openAiModels: pfStructuredClone(OPEN_AI_MODELS_CHAT).map(model => { model.selected = model.key === request.payload.documentStoreChatModel; diff --git a/views/config/document-store/chat.hbs b/views/config/document-store/chat.hbs index 519b4bda..f221c154 100644 --- a/views/config/document-store/chat.hbs +++ b/views/config/document-store/chat.hbs @@ -67,6 +67,13 @@
+ {{#if indexInfo.error}} +
+ Index handling failed:
+
{{indexInfo.error}}
+
+ {{/if}} +