~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
refactor: Remove deprecated Log table as it was never used
LearningCircuit2205efb67406
diff --git a/src/local_deep_research/database/models/__init__.py b/src/local_deep_research/database/models/__init__.pyindex f7099a6d9d..d5dd12670a 100644--- a/src/local_deep_research/database/models/__init__.py+++ b/src/local_deep_research/database/models/__init__.py@@ -15,11 +15,7 @@ from .benchmark import (DatasetType,)from .cache import Cache, SearchCache-from .logs import (- Journal,- Log,- ResearchLog,-) # Note: Log is deprecated, use ResearchLog+from .logs import Journal, ResearchLogfrom .metrics import ModelUsage, ResearchRating, SearchCall, TokenUsagefrom .providers import ProviderModelfrom .queue import QueueStatus, TaskMetadata@@ -62,7 +58,6 @@ __all__ = ["Cache","SearchCache",# Logs- "Log","ResearchLog","Journal",# Metricsdiff --git a/src/local_deep_research/database/models/logs.py b/src/local_deep_research/database/models/logs.pyindex b16d39a4b4..fdb5f4ab16 100644--- a/src/local_deep_research/database/models/logs.py+++ b/src/local_deep_research/database/models/logs.py@@ -2,14 +2,10 @@Logging models for storing application logs and journal information."""-from datetime import datetime-from sqlalchemy import (- JSON,Column,DateTime,ForeignKey,- Index,Integer,Sequence,String,@@ -20,97 +16,12 @@ from sqlalchemy.sql import funcfrom .base import Base-class Log(Base):- """- DEPRECATED: This table is not used. Use ResearchLog instead.-- Originally designed for general application logs but never implemented.- Kept for backward compatibility only - all actual logging uses ResearchLog.-- As noted by djpetti: "I'm not totally sure why we need two separate tables for logs..."- The answer is: we don't. This table exists but is unused.- """-- __tablename__ = "logs"-- id = Column(Integer, primary_key=True)-- # Log information- level = Column(- String(20), index=True- ) # DEBUG, INFO, WARNING, ERROR, CRITICAL- message = Column(Text, nullable=False)-- # Context information- module = Column(String(255)) # Module that generated the log- function = Column(String(255)) # Function name- line_number = Column(Integer) # Line number in source-- # Additional context- context = Column(JSON) # Additional structured data- exception_type = Column(String(255)) # Exception class name if applicable- exception_message = Column(Text) # Exception message- traceback = Column(Text) # Full traceback for errors-- # Request context (for web logs)- request_id = Column(String(100)) # Unique request ID for correlation- request_method = Column(String(10)) # GET, POST, etc.- request_path = Column(String(500)) # URL path- request_ip = Column(String(45)) # Client IP address-- # Performance metrics- duration_ms = Column(Integer) # Operation duration in milliseconds-- # Timestamp- timestamp = Column(DateTime, default=datetime.utcnow, index=True)-- # Indexes for performance- __table_args__ = (- Index("idx_timestamp_level", "timestamp", "level"),- Index("idx_module_level", "module", "level"),- Index("idx_request_id", "request_id"),- )-- @classmethod- def debug(cls, message: str, **kwargs):- """Create a DEBUG log entry."""- return cls(level="DEBUG", message=message, **kwargs)-- @classmethod- def info(cls, message: str, **kwargs):- """Create an INFO log entry."""- return cls(level="INFO", message=message, **kwargs)-- @classmethod- def warning(cls, message: str, **kwargs):- """Create a WARNING log entry."""- return cls(level="WARNING", message=message, **kwargs)-- @classmethod- def error(cls, message: str, **kwargs):- """Create an ERROR log entry."""- return cls(level="ERROR", message=message, **kwargs)-- @classmethod- def critical(cls, message: str, **kwargs):- """Create a CRITICAL log entry."""- return cls(level="CRITICAL", message=message, **kwargs)-- def __repr__(self):- return (- f"<Log({self.level}: '{self.message[:50]}...' at {self.timestamp})>"- )--class ResearchLog(Base):"""- The active logging table for all research operations.+ Logging table for all research operations.- This is the only log table actually used in the application.All logging from research operations, including debug messages,errors, and milestones are stored here.-- Note: The 'Log' table exists but is deprecated and unused."""__tablename__ = "app_logs"