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 main.py

LearningCircuit41929a297fe9
diff --git a/main.py b/main.py
index 264666483b..b038350fb7 100644
--- a/main.py
+++ b/main.py
@@ -43,22 +43,44 @@ def main():
print("Type 'quit' to exit")
while True:
+ print("\nSelect output type:")
+ print("1) Quick Summary (Generated in a few minutes)")
+ print("2) Detailed Research Report (Recommended for deeper analysis - may take several hours)")
+ choice = input("Enter number (1 or 2): ").strip()
+
+ while choice not in ["1", "2"]:
+ print("\nInvalid input. Please enter 1 or 2:")
+ print("1) Quick Summary (Generated in a few minutes)")
+ print("2) Detailed Research Report (Recommended for deeper analysis - may take several hours)")
+ choice = input("Enter number (1 or 2): ").strip()
+
query = input("\nEnter your research query: ").strip()
if query.lower() == 'quit':
break
- print("\nResearching... This may take a few minutes.\n")
+ if choice == "1":
+ print("\nResearching... This may take a few minutes.\n")
+ else:
+ print("\nGenerating detailed report... This may take several hours. Please be patient as this enables deeper analysis.\n")
results = system.analyze_topic(query)
- final_report = report_generator.generate_report(results["findings"], ["query"])
if results:
- # Print console report
- print("\n=== RESEARCH REPORT ===")
- print_report(final_report)
-
- print("\n=== RESEARCH METRICS ===")
- print(f"Search Iterations: {results['iterations']}")
+ if choice == "1":
+ # Quick Summary
+ print("\n=== QUICK SUMMARY ===")
+ if results['findings'] and len(results['findings']) > 0:
+ initial_analysis = results['findings'][0]['content']
+ print(initial_analysis)
+ print(f"\nNumber of sources analyzed: {len(results['findings'])}")
+ else:
+ # Full Report
+ final_report = report_generator.generate_report(results["findings"], ["query"])
+ print("\n=== RESEARCH REPORT ===")
+ print_report(final_report)
+
+ print("\n=== RESEARCH METRICS ===")
+ print(f"Search Iterations: {results['iterations']}")
else:
print("Research failed. Please try again.")