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: Make domain classification truly generic for pie chart

LearningCircuit68c79de6214f
diff --git a/src/local_deep_research/web/routes/metrics_routes.py b/src/local_deep_research/web/routes/metrics_routes.py
index 7af8f6a7fc..39fdd0d94a 100644
--- a/src/local_deep_research/web/routes/metrics_routes.py
+++ b/src/local_deep_research/web/routes/metrics_routes.py
@@ -355,38 +355,8 @@ def get_link_analytics(period="30d", username=None):
},
"source_type_analysis": source_types,
"category_distribution": category_counts,
- # Backward compatibility for frontend
- "academic_vs_general": {
- "academic": category_counts.get(
- "Academic & Research", 0
- ),
- "news": category_counts.get("News & Media", 0),
- "reference": sum(
- [
- category_counts.get(
- "Reference & Documentation", 0
- ),
- category_counts.get(
- "Government & Organization", 0
- ),
- ]
- ),
- "general": sum(
- [
- category_counts.get("Technology", 0),
- category_counts.get("Business & Commerce", 0),
- category_counts.get("Social & Community", 0),
- category_counts.get(
- "Entertainment & Lifestyle", 0
- ),
- category_counts.get(
- "Professional & Industry", 0
- ),
- category_counts.get("Other", 0),
- category_counts.get("Unclassified", 0),
- ]
- ),
- },
+ # Generic pie chart data - use whatever LLM classifier outputs
+ "domain_categories": category_counts,
"total_links": len(resources),
"total_researches": len(unique_research_ids),
"temporal_trend": temporal_trend,