~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
docs: explain local research completion smoke setup (#7326)
LearningCircuit9553c305770d
diff --git a/docs/developing.md b/docs/developing.mdindex d460e635d4..45f5a04c92 100644--- a/docs/developing.md+++ b/docs/developing.md@@ -260,6 +260,86 @@ We use `Puppeteer` for UI and End-to-End testing.node tests/ui_tests/test_simple_auth.js```+### Research Completion and Reconnect Smoke++The `research-completion` shard runs the real research worker through form+submission, Socket.IO reconnection, HTTP polling fallback, and report display.+Its dedicated server replaces the model and search results with deterministic+fixtures and pauses the worker until the browser releases it. Both processes+must share the same `LDR_RESEARCH_SMOKE_DIR` directory.++An ordinary local `run_all_tests.js` run skips this shard. Select it explicitly+with `--shard=research-completion`; missing fixture configuration and test+failures still exit nonzero. The Docker release workflow requires this same+explicit shard.++Use an isolated development environment with working SQLCipher and port 5000+available. The fixture server binds all interfaces and uses a disposable test+account with reduced test-only key-derivation settings. Activate your Python+development environment and run the following commands from the repository+root.++Install the frontend and browser dependencies, then build the application:++```bash+npm ci+npm run build+npm --prefix tests/ui_tests ci+npm --prefix tests/ui_tests run install-browsers+```++In the first terminal, create fresh test data, initialize the same account used+by CI, and start the fixture server:++```bash+export PYTHONPATH="$PWD/src"+smoke_root="$(mktemp -d "${TMPDIR:-/tmp}/ldr-research-smoke.XXXXXX")"+export LDR_DATA_DIR="$smoke_root/data"+export LDR_RESEARCH_SMOKE_DIR="$smoke_root/gates"+export LDR_TEST_MODE=1+export LDR_DB_CONFIG_KDF_ITERATIONS=1000+export LDR_DISABLE_RATE_LIMITING=true+export TEST_ENV=true+export CI=true++python scripts/ci/init_test_database.py+printf 'Browser gate directory: %s\n' "$LDR_RESEARCH_SMOKE_DIR"+python tests/ui_tests/research_completion_server.py+```++Do not wait for Uvicorn's own startup lines: the app's startup sets the+`uvicorn` loggers to `WARNING`, so Uvicorn prints neither+`Application startup complete.` nor `Uvicorn running on ...`. The server is+ready once `curl --fail http://127.0.0.1:5000/api/v1/health` succeeds, and the+commands below wait for that before starting the shard. In a second terminal at+the repository root, replace the gate-directory placeholder below with the+**exact absolute path printed by the first terminal**, then run the shard:++```bash+export CI=true+export LDR_BASE_URL=http://127.0.0.1:5000+export LDR_RESEARCH_SMOKE_DIR=/absolute/path/printed/above/gates+export CHROME_BIN="$(node -p "require('./tests/ui_tests/node_modules/puppeteer').executablePath()")"++until curl --fail --silent --show-error --connect-timeout 2 --max-time 5 \+ "$LDR_BASE_URL/api/v1/health"; do+ sleep 2+done+node tests/ui_tests/run_all_tests.js --shard=research-completion+```++`CI=true` selects the pre-created test account and CI browser timeouts; it does+not remove the explicit shard requirement. A successful run reports both+Socket.IO completion after reconnect and completion through HTTP polling.+An ordinary application server cannot supply the worker gates. If the test+waits for a worker that never enters its gate, check the server command and+that both terminals use the same directory.++Stop the fixture server with Ctrl+C after testing. Keep the temporary data for+diagnosis if needed; use a new temporary directory when repeating database+initialization. Keep the same KDF setting for initialization and server startup+so the server can open the generated encrypted database.+## Database Management### Backup & Restore