From 36a6d75d207d97890683cfa990c5d26807b64eca Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 17 Mar 2025 10:40:31 +0200 Subject: [PATCH] feat(options/llm): group into sections --- .../type_widgets/options/ai_settings.ts | 273 +++++++++--------- 1 file changed, 137 insertions(+), 136 deletions(-) diff --git a/src/public/app/widgets/type_widgets/options/ai_settings.ts b/src/public/app/widgets/type_widgets/options/ai_settings.ts index 28e519b70..c558d0009 100644 --- a/src/public/app/widgets/type_widgets/options/ai_settings.ts +++ b/src/public/app/widgets/type_widgets/options/ai_settings.ts @@ -63,33 +63,31 @@ export default class AiSettingsWidget extends OptionsWidget {
${t("ai_llm.enable_ai_description")}
+ -
+
+

${t("ai_llm.provider_configuration")}

-
-
${t("ai_llm.provider_configuration")}
- -
- - -
${t("ai_llm.provider_precedence_description")}
-
- -
- - -
${t("ai_llm.temperature_description")}
-
- -
- - -
${t("ai_llm.system_prompt_description")}
-
+
+ + +
${t("ai_llm.provider_precedence_description")}
-
+
+ + +
${t("ai_llm.temperature_description")}
+
+
+ + +
${t("ai_llm.system_prompt_description")}
+
+
+ +
+ -
-
${t("ai_llm.embedding_configuration")}
+
+

${t("ai_llm.embedding_configuration")}

-
- - -
${t("ai_llm.embedding_default_provider_description")}
-
+
+ + +
${t("ai_llm.embedding_default_provider_description")}
+
-
- - -
${t("ai_llm.embedding_generation_location_description")}
-
+
+ + +
${t("ai_llm.embedding_generation_location_description")}
+
-
- -
${t("ai_llm.enable_auto_update_embeddings_description")}
-
+
+ +
${t("ai_llm.enable_auto_update_embeddings_description")}
+
-
- -
${t("ai_llm.enable_automatic_indexing_description")}
-
+
+ +
${t("ai_llm.enable_automatic_indexing_description")}
+
-
- - -
${t("ai_llm.similarity_threshold_description")}
-
+
+ + +
${t("ai_llm.similarity_threshold_description")}
+
-
- - -
${t("ai_llm.max_notes_per_llm_query_description")}
-
+
+ + +
${t("ai_llm.max_notes_per_llm_query_description")}
+
-
- - -
${t("ai_llm.embedding_batch_size_description")}
-
+
+ + +
${t("ai_llm.embedding_batch_size_description")}
+
-
- - -
${t("ai_llm.embedding_update_interval_description")}
-
+
+ + +
${t("ai_llm.embedding_update_interval_description")}
+
-
- - -
${t("ai_llm.embedding_default_dimension_description")}
-
+
+ + +
${t("ai_llm.embedding_default_dimension_description")}
+
-
- -
${t("ai_llm.reprocess_all_embeddings_description")}
-
+
+ +
${t("ai_llm.reprocess_all_embeddings_description")}
+
-
- -
${t("ai_llm.reprocess_index_description")}
+
+ +
${t("ai_llm.reprocess_index_description")}
- - `); +
+ +
+

${t("ai_llm.embedding_statistics")}

+
+
+
${t("ai_llm.total_notes")}: -
+
${t("ai_llm.processed_notes")}: -
+
${t("ai_llm.queued_notes")}: -
+
${t("ai_llm.failed_notes")}: -
+
${t("ai_llm.last_processed")}: -
+
+ ${t("ai_llm.progress")}: - +
+
+
0%
+
+
+
+ +
+
+
+ + +
+

${t("ai_llm.failed_notes")}

+
+
+
+
${t("ai_llm.no_failed_embeddings")}
+
+
+
+
+ `); const $aiEnabled = this.$widget.find('.ai-enabled'); $aiEnabled.on('change', async () => {