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.

Delete docs/DATA_MIGRATION_GUIDE.md (#696)

LearningCircuit4d88aa79c316
diff --git a/docs/DATA_MIGRATION_GUIDE.md b/docs/DATA_MIGRATION_GUIDE.md
deleted file mode 100644
index e21bc3c1d4..0000000000
--- a/docs/DATA_MIGRATION_GUIDE.md
+++ /dev/null
@@ -1,178 +0,0 @@
-# Data Migration Guide
-
-> **⚠️ Important Note for v1.0**: The upcoming v1.0 release does not support automatic database migration from previous versions. This guide is provided for reference, but users upgrading to v1.0 will need to start with a fresh database. We recommend exporting any important data (API keys, research results) before upgrading.
-
-## Overview
-
-Local Deep Research has updated its data storage locations to improve security and follow platform best practices. Previously, data files were stored alongside the application source code. Now, they are stored in user-specific directories that vary by operating system.
-
-This guide will help you migrate your existing data to the new locations. We recommend creating a backup of your data before proceeding.
-
-## New Storage Locations
-
-The application now stores data in platform-specific user directories:
-
-- **Windows**: `C:\Users\<YourUsername>\AppData\Local\local-deep-research`
-- **macOS**: `~/Library/Application Support/local-deep-research`
-- **Linux**: `~/.local/share/local-deep-research`
-
-## What Needs to be Migrated
-
-The following data will be migrated automatically when possible:
-
-1. **Database files** (*.db) - Contains your API keys, research history, and settings
-2. **Research outputs** - Your generated research reports and findings
-3. **Cache files** - Cached pricing information and search results
-4. **Log files** - Application logs
-5. **Benchmark results** - Performance benchmark data
-6. **Optimization results** - LLM optimization data
-
-## Migration Options
-
-> **Note**: These migration options are not available in v1.0. Please see the warning at the top of this document.
-
-### Option 1: Automatic Migration (Recommended for User Installs)
-
-If you installed Local Deep Research with `pip install --user`, the automatic migration should work:
-
-```bash
-# Simply run the application
-python -m local-deep_research.web.app
-```
-
-The application will automatically detect and migrate your data on startup.
-
-### Option 2: Run Application with Administrator Privileges
-
-If you installed with `sudo pip install` or have permission issues, run the application once with administrator privileges:
-
-```bash
-# Run the application with sudo to allow migration
-sudo python -m local_deep_research.web.app
-```
-
-This will:
-- Grant the necessary permissions for the automatic migration
-- Move all data files to the new user-specific directories
-- Complete the migration process
-- After this, you can run normally without sudo
-
-### Option 3: Manual Migration
-
-If you prefer to migrate manually or the automatic options don't work:
-
-#### Step 1: Find Your Current Data Location
-
-```bash
-# Find where the application is installed
-python -c "import local_deep_research; import os; print(os.path.dirname(local_deep_research.__file__))"
-```
-
-#### Step 2: Identify Files to Migrate
-
-Look for these files/directories in the installation directory:
-- `data/ldr.db` (and any other .db files)
-- `research_outputs/` directory
-- `data/cache/` directory
-- `data/logs/` directory
-- `data/benchmark_results/` directory
-- `data/optimization_results/` directory
-
-#### Step 3: Create New Directories
-
-```bash
-# Linux/macOS
-mkdir -p ~/.local/share/local-deep-research
-
-# Windows (PowerShell)
-New-Item -ItemType Directory -Force -Path "$env:LOCALAPPDATA\local-deep-research"
-```
-
-#### Step 4: Move Your Data
-
-**Important**: Back up your data before moving!
-
-```bash
-# Example for Linux/macOS (adjust paths as needed)
-# Move databases
-sudo mv /usr/local/lib/python*/site-packages/local_deep_research/data/*.db ~/.local/share/local-deep-research/
-
-# Move research outputs
-sudo mv /usr/local/lib/python*/site-packages/local_deep_research/research_outputs ~/.local/share/local-deep-research/
-
-# Move other data directories
-sudo mv /usr/local/lib/python*/site-packages/local_deep_research/data/cache ~/.local/share/local-deep-research/
-sudo mv /usr/local/lib/python*/site-packages/local_deep_research/data/logs ~/.local/share/local-deep-research/
-```
-
-### Option 4: Start Fresh
-
-If you don't need your existing data, you can simply:
-
-1. Delete the old data files (requires administrator privileges for system installs)
-2. Start using the application - it will create new files in the correct locations
-
-## Troubleshooting
-
-### Permission Denied Errors
-
-If you see "permission denied" errors:
-
-1. You likely have a system-wide installation (installed with `sudo pip install`)
-2. Use Option 2 (Migration Helper) or Option 3 (Manual Migration) above
-3. Administrator/sudo privileges will be required to move files from system directories
-
-### Files Not Found
-
-If the migration can't find your files:
-
-1. Check if you have multiple Python installations
-2. Verify where the application is installed (Step 1 in Manual Migration)
-3. Look for data files in your current working directory
-
-### Migration Partially Completed
-
-If some files were migrated but others weren't:
-
-1. Check the application logs for specific errors
-2. Manually move any remaining files following Option 3
-3. Ensure you have write permissions to the new directories
-
-## Verifying Migration Success
-
-After migration, verify everything worked:
-
-```bash
-# Check if files exist in new location (Linux/macOS)
-ls -la ~/.local/share/local-deep-research/
-
-# Check if files exist in new location (Windows PowerShell)
-Get-ChildItem "$env:LOCALAPPDATA\local-deep-research"
-```
-
-You should see:
-- `ldr.db` (and possibly other .db files)
-- `research_outputs/` directory with your reports
-- `cache/` directory
-- `logs/` directory
-
-## Security Benefits
-
-This migration provides several security improvements:
-
-1. **User Isolation**: Data is now stored in user-specific directories
-2. **Proper Permissions**: User directories have appropriate access controls
-3. **Package Updates**: Updates won't affect your data
-4. **No System-Wide Access**: Your API keys and research data are private to your user account
-
-## Getting Help
-
-If you encounter issues:
-
-1. Check the application logs in the new logs directory
-2. Report issues at: https://github.com/LearningCircuit/local-deep-research/issues
-3. Include your operating system and installation method (pip, pip --user, etc.)
-
-## Reverting Migration (Not Recommended)
-
-If you absolutely need to revert to the old behavior, you can set environment variables to override the new paths. However, this is not recommended for security reasons and may not be supported in future versions.