Agent Zero AI framework
memory dashboard threshold
frdel6a74f891e4d7
diff --git a/webui/components/settings/memory/memory-dashboard-store.js b/webui/components/settings/memory/memory-dashboard-store.jsindex d70f8125b..4217601ad 100644--- a/webui/components/settings/memory/memory-dashboard-store.js+++ b/webui/components/settings/memory/memory-dashboard-store.js@@ -31,7 +31,8 @@ const memoryDashboardStore = {// Search and filterssearchQuery: "",areaFilter: "",- limit: parseInt(localStorage.getItem('memoryDashboard_limit') || '100'),+ threshold: parseFloat(localStorage.getItem('memoryDashboard_threshold') || '0.6'),+ limit: parseInt(localStorage.getItem('memoryDashboard_limit') || '1000'),// StatstotalCount: 0,@@ -137,6 +138,7 @@ const memoryDashboardStore = {async searchMemories(silent = false) {// Save limit to localStorage for persistencelocalStorage.setItem('memoryDashboard_limit', this.limit.toString());+ localStorage.setItem('memoryDashboard_threshold', this.threshold.toString());if (!silent) {this.loading = true;@@ -155,7 +157,8 @@ const memoryDashboardStore = {memory_subdir: this.selectedMemorySubdir,area: this.areaFilter,search: this.searchQuery,- limit: this.limit+ limit: this.limit,+ threshold: this.threshold});if (response.success) {diff --git a/webui/components/settings/memory/memory-dashboard.html b/webui/components/settings/memory/memory-dashboard.htmlindex e12499ad5..f1345bf6d 100644--- a/webui/components/settings/memory/memory-dashboard.html+++ b/webui/components/settings/memory/memory-dashboard.html@@ -55,6 +55,12 @@min="10" max="1000" step="10" style="min-width: 100px;" /></div>+ <div class="filter-group">+ <label for="threshold-input">Threshold: <span x-text="$store.memoryDashboardStore.threshold.toFixed(2)"></span></label>+ <input type="range" id="threshold-input" x-model.number="$store.memoryDashboardStore.threshold"+ min="0" max="1" step="0.01" style="min-width: 10em;" />+ </div>+<div class="filter-actions"><button class="btn primary slim" @click="$store.memoryDashboardStore.searchMemories()":disabled="$store.memoryDashboardStore.loading || $store.memoryDashboardStore.loadingSubdirs">