fix showing percentage of embeddings that are completed

This commit is contained in:
perf3ct 2025-03-30 19:43:10 +00:00
parent 40bbdb2faa
commit a5488771ae
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;
}