~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
feat: Add community benchmark results folder with documentation
LearningCircuitc84f4c0ae066
diff --git a/community_benchmark_results/COMMON_ISSUES.md b/community_benchmark_results/COMMON_ISSUES.mdnew file mode 100644index 0000000000..bd9ce6c054--- /dev/null+++ b/community_benchmark_results/COMMON_ISSUES.md@@ -0,0 +1,130 @@+# Common Benchmarking Issues and Solutions++This guide documents known issues that can affect benchmark results and how to avoid them.++## Model-Related Issues++### 1. Insufficient Context Window+**Problem**: Default context window (4096 tokens) is too small for multi-iteration research.+- **Symptoms**: Model "forgets" earlier search results, produces inconsistent answers+- **Solution**: Increase "Local Provider Context Window Size" to at least 32768 tokens+- **Note**: Each iteration accumulates context from previous searches++### 2. Model Size Limitations+**Problem**: Smaller models may struggle with multi-step reasoning required for research.+- **Symptoms**: Low accuracy, inability to synthesize information across sources+- **Consider**: Larger models for focused-iteration strategy+- **Alternative**: Source-based strategy with fewer iterations may work better for smaller models++### 3. Quantization Impact+**Problem**: Heavy quantization can degrade research performance.+- **Symptoms**: Hallucinations, inability to follow multi-step instructions+- **Recommendation**: Test different quantization levels to find the right balance++## Search Engine Issues++### 1. SearXNG Rate Limiting+**Problem**: Too many requests trigger SearXNG's protective rate limiting.+- **Symptoms**: Empty search results, "No results found" errors+- **Solutions**:+ - Reduce questions per iteration+ - Use your own SearXNG instance with appropriate limits+ - Consider alternative search engines for high-volume testing++### 2. Search Provider Limitations+**Problem**: Some search engines provide limited or specialized results.+- **Examples**:+ - Wikipedia-only searches are too narrow for general questions+ - Some providers may have API limits or geographic restrictions+- **Recommendation**: Test with SearXNG (aggregates multiple engines) or Tavily++### 3. Search Engine Configuration+**Problem**: Misconfigured search engines return no results.+- **Check**: API keys are valid and have remaining credits+- **Verify**: Search engine is accessible from your network+- **Test**: Try a manual search through the UI first++## Configuration Issues++### 1. Memory Management+**Problem**: Large models + high context = out of memory errors.+- **Symptoms**: Benchmark crashes, system freezes+- **Solutions**:+ - Monitor RAM/VRAM usage during tests+ - Adjust context window size based on available memory+ - Use quantized models if necessary++### 2. Temperature Settings+**Problem**: Temperature affects consistency of results.+- **For benchmarking**: Lower temperature (0.0-0.1) typically gives more consistent results+- **Document**: Always include temperature in your benchmark submission++### 3. Max Tokens Limit+**Problem**: Low max_tokens cuts off model responses.+- **Symptoms**: Incomplete answers, missing citations+- **Solution**: Ensure max_tokens is sufficient for complete responses++## Strategy-Specific Considerations++### Focused-Iteration Strategy+- **Higher token usage**: More iterations × more questions = more context+- **Context accumulation**: Each iteration adds to the context+- **Time intensive**: Takes longer but may be more thorough+- **Best for**: Models with larger context windows++### Source-Based Strategy+- **Different approach**: Fewer iterations, different search pattern+- **Efficiency**: Generally faster than focused-iteration+- **Consider for**: Models with limited context windows++## Benchmarking Best Practices++### 1. Start Small+- Begin with 10-20 questions to verify configuration+- Check that search results are being retrieved+- Monitor resource usage before scaling up++### 2. Consistent Testing+- Use the same search configuration across tests+- Document the exact settings used+- Note any errors or anomalies++### 3. Fair Comparisons+- Test both strategies when possible+- Use the same question set across models+- Include all relevant configuration details++### 4. Resource Monitoring+```bash+# Monitor GPU usage (if using NVIDIA)+nvidia-smi -l 1++# Monitor system resources+htop++# Check Ollama models loaded+ollama list+```++## Interpreting Results++### What Affects Accuracy+- Model size and architecture+- Quantization level+- Context window size+- Search result quality+- Strategy choice+- Temperature and other parameters++### Red Flags in Results+- **Extremely fast completion**: May indicate search or processing issues+- **No search results**: Check search engine configuration+- **Consistent errors**: Look for configuration problems++## Getting Help++If you encounter issues:+1. Check the [FAQ](https://github.com/LearningCircuit/local-deep-research/blob/main/docs/faq.md)+2. Search existing [GitHub Issues](https://github.com/LearningCircuit/local-deep-research/issues)+3. Join our [Discord](https://discord.gg/ttcqQeFcJ3) for community help+4. Include error messages, configuration details, and logs when asking for helpdiff --git a/community_benchmark_results/README.md b/community_benchmark_results/README.mdnew file mode 100644index 0000000000..03e530010c--- /dev/null+++ b/community_benchmark_results/README.md@@ -0,0 +1,66 @@+# Local Deep Research Benchmark Results++This directory contains community-contributed benchmark results for various LLMs tested with Local Deep Research.++## Contributing Your Results++1. Run benchmarks using the LDR web interface at `/benchmark`+2. Copy `benchmark_template.yaml` to a new file named: `[model_name]_[date].yaml`+ - Example: `llama3.3-70b-q4_2025-01-23.yaml`+ - Optional: Include your username: `johnsmith_llama3.3-70b-q4_2025-01-23.yaml`+3. Fill in your results+4. Submit a PR to add your file to this directory++## Important Guidelines++- **Test both strategies**: focused-iteration and source-based+- **Use consistent settings**: Start with 20-50 SimpleQA questions+- **Include all metadata**: Hardware specs, configuration, and versions are crucial+- **Be honest**: Negative results are as valuable as positive ones+- **Add notes**: Your observations help others understand the results++## Recommended Test Configuration++### For Large Models (70B+)+- Context Window: 32768+ tokens+- Focused-iteration: 8 iterations, 5 questions each+- Source-based: 5 iterations, 3 questions each++### For Smaller Models (<70B)+- Context Window: 16384+ tokens (adjust based on model)+- Focused-iteration: 5 iterations, 3 questions each+- Source-based: 3 iterations, 3 questions each++## Current Baseline++- **Model**: GPT-4.1-mini+- **Strategy**: focused-iteration (8 iterations, 5 questions)+- **Accuracy**: ~95% on SimpleQA (preliminary results from 20-100 question samples)+- **Search**: SearXNG+- **Verified by**: 2 independent testers++## Understanding the Results++### Accuracy Ranges+- **90%+**: Excellent - matches GPT-4 performance+- **80-90%**: Very good - suitable for most research tasks+- **70-80%**: Good - works well with human oversight+- **<70%**: Limited - may struggle with complex research++### Common Issues+- **Low accuracy**: Often due to insufficient context window+- **Timeouts**: Model too slow for iterative research+- **Memory errors**: Reduce context window or batch size+- **Rate limiting**: SearXNG may throttle excessive requests++## Viewing Results++Browse the YAML files in this directory to see how different models perform. Look for patterns like:+- Which quantization levels maintain accuracy+- Minimum viable model size for research tasks+- Best strategy for different model architectures+- Hardware requirements for acceptable performance++## Questions?++Join our [Discord](https://discord.gg/ttcqQeFcJ3) to discuss results and get help with benchmarking.diff --git a/community_benchmark_results/benchmark_template.yaml b/community_benchmark_results/benchmark_template.yamlnew file mode 100644index 0000000000..4685ce260e--- /dev/null+++ b/community_benchmark_results/benchmark_template.yaml@@ -0,0 +1,58 @@+# Benchmark Result Template+# Please copy this file and rename it to: [model_name]_[date].yaml+# Example: llama3.3-70b-q4_2025-01-23.yaml++# Model Information+model: # e.g., Llama-3.3-70B-Q4_K_M+model_provider: # ollama, llamacpp, vllm, etc.+quantization: # e.g., Q4_K_M, Q5_K_S, FP16, etc.++# Hardware+hardware:+ gpu: # e.g., RTX 4090 24GB, 2x A100 80GB+ ram: # e.g., 64GB DDR5+ cpu: # e.g., AMD Ryzen 9 7950X++# Benchmark Results+results:+ dataset: SimpleQA+ total_questions: # e.g., 50++ focused_iteration:+ accuracy: # e.g., 87% (43/50)+ iterations: # e.g., 8+ questions_per_iteration: # e.g., 5+ avg_time_per_question: # e.g., 95s+ total_tokens_used: # if available++ source_based:+ accuracy: # e.g., 82% (41/50)+ iterations: # e.g., 5+ questions_per_iteration: # e.g., 3+ avg_time_per_question: # e.g., 65s+ total_tokens_used: # if available++# Configuration+configuration:+ context_window: # e.g., 32768+ temperature: # e.g., 0.1+ max_tokens: # e.g., 4096+ local_provider_context_window_size: # from settings++# Versions+versions:+ ldr_version: # e.g., 0.6.0+ ollama_version: # if applicable+ searxng_version: # if known++# Test Details+test_details:+ date_tested: # YYYY-MM-DD+ search_engine: # e.g., searxng, tavily+ rate_limiting_issues: # yes/no++# Notes+notes: |+ # Add any observations, errors, or insights here+ # Example: Model struggled with recent events post-2023+ # Example: Source-based strategy worked better for complex multi-hop questions