~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
fix: Use consistent LDR_DATA_DIR path in CI workflows
LearningCircuita0abfe9c3dae
diff --git a/.github/workflows/critical-ui-tests.yml b/.github/workflows/critical-ui-tests.ymlindex dd0bf4796e..51391c447d 100644--- a/.github/workflows/critical-ui-tests.yml+++ b/.github/workflows/critical-ui-tests.yml@@ -58,19 +58,22 @@ jobs:- name: Set up test directoriesrun: |- mkdir -p ~/.local/share/local-deep-research/encrypted_databases- mkdir -p ~/.local/share/local-deep-research+ # Use consistent path for both init and server+ mkdir -p "$PWD/data/encrypted_databases"- name: Initialize databaseenv:TEST_ENV: true+ LDR_DATA_DIR: ${{ github.workspace }}/datarun: |cd srccat > init_db.py << 'EOF'import osfrom pathlib import Path- # Ensure data directory exists- data_dir = Path.home() / '.local' / 'share' / 'local-deep-research'++ # Use LDR_DATA_DIR if set, otherwise default+ data_dir = Path(os.environ.get('LDR_DATA_DIR', Path.home() / '.local' / 'share' / 'local-deep-research'))+ print(f'Using data directory: {data_dir}')data_dir.mkdir(parents=True, exist_ok=True)(data_dir / 'encrypted_databases').mkdir(parents=True, exist_ok=True)@@ -91,6 +94,7 @@ jobs:# Create user's encrypted database with passwordengine = db_manager.create_user_database('test_admin', 'testpass123')print('Database initialized successfully')+ print(f'Encrypted databases in: {data_dir / "encrypted_databases"}')EOFpdm run python init_db.py@@ -101,13 +105,14 @@ jobs:TEST_ENV: trueDISABLE_RATE_LIMITING: trueSECRET_KEY: test-secret-key-for-ci+ LDR_DATA_DIR: ${{ github.workspace }}/datarun: |- mkdir -p data/encrypted_databases- export LDR_DATA_DIR=$PWD/dataecho "Starting server with LDR_DATA_DIR=$LDR_DATA_DIR"+ echo "Contents of data directory:"+ ls -la "$LDR_DATA_DIR/encrypted_databases/" || echo "No encrypted databases yet"cd src# Start server and get its PID- LDR_DATA_DIR=$PWD/../data pdm run python -m local_deep_research.web.app > server.log 2>&1 &+ pdm run python -m local_deep_research.web.app > server.log 2>&1 &SERVER_PID=$!echo "Server PID: $SERVER_PID"diff --git a/.github/workflows/extended-ui-tests.yml b/.github/workflows/extended-ui-tests.ymlindex b7fc9a614c..d1b81aef84 100644--- a/.github/workflows/extended-ui-tests.yml+++ b/.github/workflows/extended-ui-tests.yml@@ -74,16 +74,59 @@ jobs:- name: Setup directoriesrun: |- mkdir -p data+ mkdir -p data/encrypted_databasesmkdir -p tests/ui_tests/screenshotsmkdir -p tests/ui_tests/results+ - name: Initialize database with test user+ env:+ TEST_ENV: true+ LDR_DATA_DIR: ${{ github.workspace }}/data+ run: |+ cat > init_db.py << 'EOF'+ import os+ from pathlib import Path++ # Use LDR_DATA_DIR if set, otherwise default+ data_dir = Path(os.environ.get('LDR_DATA_DIR', Path.home() / '.local' / 'share' / 'local-deep-research'))+ print(f'Using data directory: {data_dir}')+ data_dir.mkdir(parents=True, exist_ok=True)+ (data_dir / 'encrypted_databases').mkdir(parents=True, exist_ok=True)++ import sys+ sys.path.insert(0, 'src')++ from local_deep_research.database.auth_db import init_auth_database, get_auth_db_session+ from local_deep_research.database.models.auth import User+ from local_deep_research.database.encrypted_db import db_manager++ # Initialize auth database+ init_auth_database()++ # Create test user in auth database (no password stored)+ session = get_auth_db_session()+ user = User(username='test_admin')+ session.add(user)+ session.commit()+ session.close()++ # Create user's encrypted database with password+ engine = db_manager.create_user_database('test_admin', 'testpass123')+ print('Database initialized successfully')+ print(f'Encrypted databases in: {data_dir / "encrypted_databases"}')+ EOF+ pdm run python init_db.py+- name: Start server+ env:+ LDR_DATA_DIR: ${{ github.workspace }}/datarun: |export CI=trueexport LDR_USE_FALLBACK_LLM=trueexport DISABLE_RATE_LIMITING=true- export PYTHONPATH=$PWD/src:$PYTHONPATH+ export PYTHONPATH="$PWD/src:$PYTHONPATH"+ echo "Starting server with LDR_DATA_DIR=$LDR_DATA_DIR"+ ls -la "$LDR_DATA_DIR/encrypted_databases/" || echo "No encrypted databases yet"pdm run python -m local_deep_research.web.app &echo $! > server.pid