~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
chore: Remove outdated update_news_metadata.py script
LearningCircuiteb1346283784
diff --git a/scripts/update_news_metadata.py b/scripts/update_news_metadata.pydeleted file mode 100755index d615f268f1..0000000000--- a/scripts/update_news_metadata.py+++ /dev/null@@ -1,120 +0,0 @@-#!/usr/bin/env python3-"""-Update existing research items with generated headlines and topics.-This script adds generated_headline and generated_topics to research metadata.-"""--import sys-import os-import json-import logging--# Add the src directory to the path-sys.path.insert(- 0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../src"))-)--from local_deep_research.web.models.database import get_db_connection-from local_deep_research.news.utils.headline_generator import generate_headline-from local_deep_research.news.utils.topic_generator import generate_topics--logging.basicConfig(level=logging.INFO)-logger = logging.getLogger(__name__)---def update_news_metadata():- """Update research items with generated headlines and topics."""- conn = get_db_connection()- cursor = conn.cursor()-- # Get all completed research items that might be news- cursor.execute("""- SELECT id, query, research_meta, report_path- FROM research_history- WHERE status = 'completed'- ORDER BY created_at DESC- LIMIT 100- """)-- results = cursor.fetchall()- updated_count = 0-- for row in results:- research_id, query, meta_str, report_path = row-- # Parse metadata- metadata = {}- if meta_str:- try:- metadata = json.loads(meta_str)- except json.JSONDecodeError:- continue-- # Check if this is likely a news item- query_lower = query.lower()- is_news = (- metadata.get("is_news_search")- or "news" in query_lower- or "breaking" in query_lower- or "today" in query_lower- )-- if not is_news:- continue-- # Skip if already has generated headline/topics- if metadata.get("generated_headline") and metadata.get(- "generated_topics"- ):- logger.info(- f"Research {research_id} already has generated metadata"- )- continue-- logger.info(f"Processing research {research_id}: {query[:50]}...")-- # Read report content if available- report_content = ""- if report_path and os.path.exists(report_path):- try:- with open(report_path, "r", encoding="utf-8") as f:- report_content = f.read()[:2000]- except Exception as e:- logger.error(f"Error reading report: {e}")-- # Generate headline if not present- if not metadata.get("generated_headline"):- headline = generate_headline(query, report_content)- metadata["generated_headline"] = headline- logger.info(f" Generated headline: {headline}")-- # Generate topics if not present- if not metadata.get("generated_topics"):- topics = generate_topics(- query=query,- findings=report_content,- category=metadata.get("category", "News"),- max_topics=6,- )- metadata["generated_topics"] = topics- logger.info(f" Generated topics: {topics}")-- # Update the database- cursor.execute(- "UPDATE research_history SET research_meta = ? WHERE id = ?",- (json.dumps(metadata), research_id),- )- updated_count += 1-- conn.commit()- conn.close()-- logger.info(- f"\nUpdated {updated_count} research items with headlines and topics"- )---if __name__ == "__main__":- print("Updating news metadata for existing research items...")- update_news_metadata()- print("Done!")