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.

Update search_system.py

LearningCircuitb9e8330d81c2
diff --git a/search_system.py b/search_system.py
index 67c79b3877..aa86aea13b 100644
--- a/search_system.py
+++ b/search_system.py
@@ -83,8 +83,14 @@ class AdvancedSearchSystem:
print("Research iteration ", iteration)
from utilities import format_findings_to_text
formatted_findings = format_findings_to_text(findings, current_knowledge, self.questions_by_iteration)
- with open("formatted_output.txt", "w", encoding='utf-8') as text_file:
- text_file.write(formatted_findings)
+ # Create a safe filename from the query
+ safe_query = "".join(x for x in query if x.isalnum() or x in [' ', '-', '_'])[:50] # Limit length
+ safe_query = safe_query.replace(' ', '_').lower()
+ timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
+ filename = f"formatted_output_{safe_query}_{timestamp}.txt"
+
+ with open(filename, "w", encoding='utf-8') as text_file:
+ text_file.write(formatted_findings)