~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
Update README.md
LearningCircuit4aacf80e7bed
diff --git a/README.md b/README.mdindex db931ac98c..55a330a316 100644--- a/README.md+++ b/README.md@@ -1,7 +1,50 @@# Local Deep Research+| [Reddit](https://www.reddit.com/r/LocalDeepResearch/) | [Discord](https://discord.gg/ttcqQeFcJ3) |+A powerful AI-powered research assistant that performs deep, iterative analysis using multiple LLMs and web searches. The system can be run locally for privacy or configured to use cloud-based LLMs for enhanced capabilities.+## Key Features++* 🔬 **AI Research, Not Just AI Search**+ * Conducts multi-stage research that builds on initial findings+ * **NEW:** Select your research approach:+ * Lightning-fast parallel processing for quick yet comprehensive answers+ * Thoughtful iterative analysis for nuanced understanding of complex topics+ * Discovers connections between sources that simple search misses+ * Produces structured reports with proper citations, not just collected snippets++* 🛡️ **Complete Digital Sovereignty**+ * Research without compromise - 100% local operation keeps your queries private+ * **NEW:** Enhanced Ollama integration with improved reliability and error recovery+ * Compatible with efficient open-source models that run on consumer hardware+ * Progress bar and **NEW** detailed logging show exactly what's happening at every step+ * Optional cloud models when you need additional capabilities++* 📚 **Your Knowledge, Extended**+ * Integrate your personal document library as a research source+ * Organize documents into specialized collections with customized processing+ * **NEW:** Cross-reference your documents with web sources in a single research flow+ * Intelligent vector search that preserves context and meaning+ * Unified database system for seamless settings management++* 🌐 **Smart Source Selection and Analysis**+ * Automatically selects the most appropriate sources for your specific query+ * Academic research with specialized sources like PubMed, arXiv, and Semantic Scholar+ * Technical research with **NEW** improved GitHub integration and code analysis+ * General inquiries via SearxNG, Brave Search, or other configurable engines+ * **NEW:** Cross-engine filtering for dramatically improved result quality++* ⚙️ **Flexible Use Cases**+ * Web interface for interactive research with real-time feedback+ * Programmatic API for integration into your workflows and applications+ * Command-line interface for scriptable operation+ * Export to markdown, PDF, or plain text+ * Configure every aspect from search depth to model parameters++Local Deep Research reimagines how AI can assist with research. While other tools focus on search or retrieval, we've built a research assistant that asks follow-up questions, evaluates sources, and synthesizes findings into coherent reports. It combines language models with specialized search capabilities and personal knowledge management - all while respecting your privacy by keeping your data under your control. Whether you're a student, academic, professional, or just curious, it adapts to your needs with quality results for serious research.++<div align="center"><a href="https://www.youtube.com/watch?v=0ISreg9q0p0"><img src="https://img.youtube.com/vi/0ISreg9q0p0/0.jpg" alt="Local Deep Research">@@ -10,13 +53,12 @@ A powerful AI-powered research assistant that performs deep, iterative analysis</a></div>--**Important for non-academic searches:** For normal web searches you will need SearXGN or an API key to a search provider like brave search or SerpAPI. The free searches are mostly academic search engines and will not help you for most normal searches.+**Important for non-academic searches:** For normal web searches you will need SearXNG or an API key to a search provider like brave search or SerpAPI. The free searches are mostly academic search engines and will not help you for most normal searches.## Windows Installation-- Download the [Windows Installer](https://github.com/LearningCircuit/local-deep-research/releases/download/v0.1.0/LocalDeepResearch_Setup.exe) for easy one-click installation.-++ Download the [Windows Installer](https://github.com/LearningCircuit/local-deep-research/releases/download/v0.2.0/LocalDeepResearch_Setup.exe) for easy one-click installation.+**Requires Ollama (or other model provider configured in .env).**Download from https://ollama.ai and then pull a modelollama pull gemma3:12b@@ -77,7 +119,7 @@ import os# Set environment variables to control the LLMos.environ["LDR_LLM__MODEL"] = "mistral" # Specify model name-from local_deep_research import quick_summary, generate_report, analyze_documents+from local_deep_research import quick_summary, generate_report# Generate a quick research summary with custom parametersresults = quick_summary(@@ -93,44 +135,6 @@ print(results["summary"])These functions provide flexible options for customizing the search parameters, iterations, and output formats. For more examples, see the [programmatic access tutorial](https://github.com/LearningCircuit/local-deep-research/blob/main/examples/programmatic_access.ipynb).--## Features--- 🔍 **Advanced Research Capabilities**- - Automated deep research with intelligent follow-up questions- - Proper inline citation and source verification- - Multi-iteration analysis for comprehensive coverage- - Full webpage content analysis (not just snippets)--- 🤖 **Flexible LLM Support**- - Local AI processing with Ollama models- - Cloud LLM support (Claude, GPT)- - Supports all Langchain models- - Configurable model selection based on needs--- 📊 **Rich Output Options**- - Detailed research findings with proper citations- - Well-structured comprehensive research reports- - Quick summaries for rapid insights- - Source tracking and verification--- 🔒 **Privacy-Focused**- - Runs entirely on your machine when using local models- - Configurable search settings- - Transparent data handling--- 🌐 **Enhanced Search Integration**- - **Auto-selection of search sources**: The "auto" search engine intelligently analyzes your query and selects the most appropriate search engine- - Multiple search engines including Wikipedia, arXiv, PubMed, Semantic Scholar, and more- - **Local RAG search for private documents** - search your own documents with vector embeddings- - Full webpage content retrieval and intelligent filtering--- 🎓 **Academic & Scientific Integration**- - Direct integration with PubMed, arXiv, Wikipedia, Semantic Scholar- - Properly formatted citations from academic sources- - Report structure suitable for literature reviews- - Cross-disciplinary synthesis of information-## Configuration SystemThe package automatically creates and manages configuration files in your user directory:@@ -145,7 +149,6 @@ When you first run the tool, it creates these configuration files:| File | Purpose ||------|---------|| `settings.toml` | General settings for research, web interface, and search |-| `llm_config.py` | Advanced LLM configuration (rarely needs modification) || `search_engines.toml` | Define and configure search engines || `local_collections.toml` | Configure local document collections for RAG || `.env` | Environment variables for configuration (recommended for API keys) |@@ -158,7 +161,7 @@ The system supports multiple LLM providers:### Local Models (via Ollama)-1. [Install Ollama](https://ollama.ai)+1. [Install Ollama](https://ollama.ai)2. Pull a model: `ollama pull gemma3:12b` (recommended model)3. Ollama runs on port 11434 by default@@ -172,13 +175,11 @@ ANTHROPIC_API_KEY=your-api-key-here # For Claude modelsOPENAI_API_KEY=your-openai-key-here # For GPT modelsOPENAI_ENDPOINT_API_KEY=your-key-here # For OpenRouter or similar services-# Set your preferred LLM provider and model (no need to edit llm_config.py)+# Set your preferred LLM provider and modelLDR_LLM__PROVIDER=ollama # Options: ollama, openai, anthropic, etc.LDR_LLM__MODEL=gemma3:12b # Model name to use```-> **Important:** In most cases, you don't need to modify the `llm_config.py` file. Simply set the `LDR_LLM__PROVIDER` and `LDR_LLM__MODEL` environment variables to use your preferred model.-### Supported LLM ProvidersThe system supports multiple LLM providers:@@ -312,10 +313,11 @@ LDR_SEARCH__QUESTIONS_PER_ITERATION=2The web interface offers several features:- **Dashboard**: Start and manage research queries-- **Real-time Updates**: Track research progress+- **Real-time Updates**: Track research progress with improved logging- **Research History**: Access past queries- **PDF Export**: Download reports- **Research Management**: Terminate processes or delete records+- **Enhanced Settings Panel**: New unified settings UI with improved organization## Command Line Interface@@ -326,6 +328,21 @@ The CLI version allows you to:3. View results directly in the terminal4. Save reports automatically to the configured output directory+## Development Environment++This project now uses PDM for dependency management. To set up a development environment:++```bash+# Install PDM if you don't have it+pip install pdm++# Install dependencies+pdm install --no-self++# Activate the environment+pdm venv activate+```+You can run the application directly using Python module syntax:```bash@@ -336,9 +353,82 @@ python -m local_deep_research.web.apppython -m local_deep_research.main```+For more information, see the [development documentation](docs/developing.md).++## Unified Database++The application now uses a single unified database (`ldr.db`) for all settings and history, making configuration management simpler and more reliable.++### Migration from v0.1.x++If you have existing data in legacy databases from v0.1.x, the application will automatically migrate your data when you first run v0.2.0.++## Contributing++Contributions are welcome! Please feel free to submit a Pull Request.++### Development Setup with PDM++This project uses PDM for dependency management. Here's how to set up your development environment:++```bash+# Install PDM if you don't have it+pip install pdm++# Clone the repository+git clone https://github.com/LearningCircuit/local-deep-research.git+cd local-deep-research++# Install dependencies including dev dependencies+pdm install --no-self++# Set up pre-commit hooks+pdm run pre-commit install+pdm run pre-commit install-hooks++# Activate the virtual environment+pdm venv activate+```++#### Common PDM Commands++```bash+# Run linting checks+pdm run flake8+pdm run black .++# Run tests (when available)+pdm run pytest++# Add a new dependency+pdm add package-name++# Add a development dependency+pdm add -dG dev package-name+```++### Contributing Process++1. Fork the repository+2. Create your feature branch (`git checkout -b feature/AmazingFeature`)+3. Make your changes+4. Run linting checks to ensure code quality+5. Commit your changes (`git commit -m 'Add some AmazingFeature'`)+6. Push to the branch (`git push origin feature/AmazingFeature`)+7. **Important:** Open a Pull Request against the `dev` branch, not the `main` branch++We prefer all pull requests to be submitted against the `dev` branch for easier testing and integration before releasing to the main branch.++### Getting Help++Join our [Discord server](https://discord.gg/ttcqQeFcJ3) if you're planning to contribute. Let us know about your plans - we're always happy to guide new contributors and discuss feature ideas!+## Community & Support-Join our [Discord server](https://discord.gg/2E6gYU2Z) to exchange ideas, discuss usage patterns, and share research approaches.+Join our [Discord server](https://discord.gg/ttcqQeFcJ3) to exchange ideas, discuss usage patterns, and+share research approaches.++Follow our [Subreddit](https://www.reddit.com/r/LocalDeepResearch/) for announcements, updates, and feature highlights.## License@@ -365,55 +455,3 @@ This project is licensed under the MIT License.> - [Support arXiv](https://arxiv.org/about/give)> - [Donate to DuckDuckGo](https://duckduckgo.com/donations)> - [Support PubMed/NCBI](https://www.nlm.nih.gov/pubs/donations/donations.html)--## Contributing--Contributions are welcome! Please feel free to submit a Pull Request.--See [the docs](docs/developing.md) for how to set up your-local development environment.--1. Fork the repository-2. Create your feature branch (`git checkout -b feature/AmazingFeature`)-3. Make your changes-4. Commit your changes (`git commit -m 'Add some AmazingFeature'`)-5. Push to the branch (`git push origin feature/AmazingFeature`)-6. **Important:** Open a Pull Request against the `dev` branch, not the `main` branch--We prefer all pull requests to be submitted against the `dev` branch for easier testing and integration before releasing to the main branch.--## Database Path Update--The application now uses a unified database (`ldr.db`) located at `src/data/ldr.db` within the project directory. This replaces the previous approach of using separate databases (`deep_research.db` in an external location and `research_history.db` in the project root).--### Migration--If you have existing data in the legacy databases, follow these steps to migrate it:--1. Run the setup script to ensure the data directory exists:- ```- python -m src.local_deep_research.setup_data_dir- ```--2. Run the migration script to transfer data:- ```- python -m src.local_deep_research.migrate_db --backup- ```--The `--backup` flag creates backups of your existing databases before migration.--### Starting the Application--To start the application with the new database:--```-python -m src.local_deep_research.main-```--If you want to start with automatic migration if needed:--```-python -m src.local_deep_research.main --auto-migrate-```--