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.

bugfixes

LearningCircuitdcf363de8bd4
diff --git a/config.py b/config.py
index 4ce0a0aee0..ab8f06a619 100644
--- a/config.py
+++ b/config.py
@@ -11,7 +11,7 @@ load_dotenv()
# LLM Configuration
DEFAULT_MODEL = "deepseek-r1:14b"
DEFAULT_TEMPERATURE = 0.7
-MAX_TOKENS = 20000
+MAX_TOKENS = 2000
# Search Configuration
MAX_SEARCH_RESULTS = 40
@@ -68,11 +68,4 @@ def get_search():
safesearch=SAFE_SEARCH
)
-def ensure_directories():
- """Ensure required directories exist"""
- for directory in [OUTPUT_DIR, CACHE_DIR]:
- if not os.path.exists(directory):
- os.makedirs(directory)
-# Create necessary directories on import
-ensure_directories()
\ No newline at end of file
diff --git a/search_system.py b/search_system.py
index 77697fe56c..92262aa40c 100644
--- a/search_system.py
+++ b/search_system.py
@@ -1,5 +1,3 @@
-from langchain_community.tools import DuckDuckGoSearchResults
-from langchain_ollama import ChatOllama
from typing import Dict, List
from datetime import datetime
from utilities import remove_think_tags, format_findings_to_text
@@ -7,7 +5,7 @@ import os
from config import get_llm, get_search
class AdvancedSearchSystem:
def __init__(self):
- self.search = get_search
+ self.search = get_search()
self.model = get_llm()
self.max_iterations = 2
self.context_limit = 5000