Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: add total tokens to chart and mention metrics page in VRAM warning (#3344)

LearningCircuit90e7f86ac566
diff --git a/src/local_deep_research/web/static/js/components/details.js b/src/local_deep_research/web/static/js/components/details.js
index 4058451d33..b50a9c500f 100644
--- a/src/local_deep_research/web/static/js/components/details.js
+++ b/src/local_deep_research/web/static/js/components/details.js
@@ -1255,6 +1255,7 @@
const labels = requests.map((req, idx) => `Request ${idx + 1}`);
const promptData = requests.map(req => req.prompt_tokens || 0);
const completionData = requests.map(req => req.completion_tokens || 0);
+ const totalData = requests.map(req => (req.prompt_tokens || 0) + (req.completion_tokens || 0));
// Create chart
new Chart(ctx, {
@@ -1263,14 +1264,22 @@
labels: labels,
datasets: [
{
- label: 'Prompt Tokens',
+ label: 'Total Tokens',
+ data: totalData,
+ borderColor: 'rgb(168, 85, 247)',
+ backgroundColor: 'rgba(168, 85, 247, 0.1)',
+ borderWidth: 2,
+ tension: 0.1
+ },
+ {
+ label: 'Input Tokens',
data: promptData,
borderColor: 'rgb(59, 130, 246)',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
tension: 0.1
},
{
- label: 'Completion Tokens',
+ label: 'Output Tokens',
data: completionData,
borderColor: 'rgb(34, 197, 94)',
backgroundColor: 'rgba(34, 197, 94, 0.1)',
diff --git a/src/local_deep_research/web/warning_checks/hardware.py b/src/local_deep_research/web/warning_checks/hardware.py
index a6f65f30cd..577ea53821 100644
--- a/src/local_deep_research/web/warning_checks/hardware.py
+++ b/src/local_deep_research/web/warning_checks/hardware.py
@@ -28,7 +28,9 @@ def check_high_context(
f"Context size ({local_context:,} tokens) requires sufficient VRAM. "
f"This is recommended for the langgraph-agent strategy. "
f"If you experience slowdowns, reduce context size in settings "
- f"and switch to the source-based strategy instead."
+ f"and switch to the source-based strategy instead. "
+ f"Tip: check the metrics page in each research history entry "
+ f"to monitor actual token usage and VRAM consumption."
),
"dismissKey": "app.warnings.dismiss_high_context",
}