Skip to content

Build your personal knowledge base with Trilium Notes

fix showing percentage of embeddings that are completed

perf3cta5488771ae15
diff --git a/src/public/app/widgets/type_widgets/options/ai_settings/ai_settings_widget.ts b/src/public/app/widgets/type_widgets/options/ai_settings/ai_settings_widget.ts
index aa40324692..89530a17ae 100644
--- a/src/public/app/widgets/type_widgets/options/ai_settings/ai_settings_widget.ts
+++ b/src/public/app/widgets/type_widgets/options/ai_settings/ai_settings_widget.ts
@@ -328,7 +328,7 @@ export default class AiSettingsWidget extends OptionsWidget {
// Update status text
let statusText;
if (stats.queuedNotesCount > 0) {
- statusText = t("ai_llm.processing");
+ statusText = t("ai_llm.processing", { percentage: progressPercent });
} else if (stats.embeddedNotesCount === 0) {
statusText = t("ai_llm.not_started");
} else if (stats.embeddedNotesCount === stats.totalNotesCount) {
@@ -340,7 +340,7 @@ export default class AiSettingsWidget extends OptionsWidget {
this.indexRebuildRefreshInterval = null;
}
} else {
- statusText = t("ai_llm.partial");
+ statusText = t("ai_llm.partial", { percentage: progressPercent });
}
this.$widget.find('.embedding-status-text').text(statusText);
diff --git a/src/services/llm/embeddings/queue.ts b/src/services/llm/embeddings/queue.ts
index 87541051bc..1b27559d11 100644
--- a/src/services/llm/embeddings/queue.ts
+++ b/src/services/llm/embeddings/queue.ts
@@ -224,7 +224,7 @@ export async function processEmbeddingQueue() {
// Double-check that this note isn't already being processed
if (notesInProcess.has(noteId)) {
- log.info(`Note ${noteId} is already being processed by another thread, skipping`);
+ //log.info(`Note ${noteId} is already being processed by another thread, skipping`);
continue;
}