Python Setup¶
This guide explains how Python is provided for Docling tools in Zotero Redis RAG.
Recommended mode: Python worker container¶
The plugin now supports a dedicated python-worker service (separate from Redis).
- Open Settings → Community plugins → Zotero Redis RAG → Prerequisites.
- Set Python runtime to Python worker container (recommended).
- Ensure Docker/Podman path is correct.
- Click Start Redis stack now.
- Wait until startup finishes (first run can take longer while Python deps are installed in the worker venv).
In this mode:
- No local Python install is required for plugin runtime.
- Redis and Python stay in separate containers.
- Python dependencies are installed into a persistent worker venv.
- OCR binaries are inside the worker image (
tesseract,poppler), with Tesseract language packs defaulting toeng deu fra spa ita nld por pol swe(override viaZRR_TESSERACT_LANG_PACKS).
Local fallback mode (optional)¶
Use this if you explicitly want local Python execution.
Prerequisites:
- Python
3.11to3.13 pipavailable for that Python
In settings:
- Set Python runtime to Local interpreter/venv.
- (Optional) Set Python path if auto-detection is wrong.
- Choose Python env location (
Shared user cacherecommended). - Click Python environment → Create/Update.
Terminal fallback:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Then set Python path to:
- macOS/Linux:
.venv/bin/python - Windows:
.venv\Scripts\python.exe
Verify¶
- Run Import Zotero item and index (Docling → RedisSearch) on a small PDF.
- If extraction fails, inspect logs in Maintenance → Logs and container logs (
python-worker) if using worker mode.
Common pitfalls¶
- Docker/Podman not running: worker mode cannot start.
- File sharing not configured: worker cannot access mounted vault/plugin paths.
- Worker startup still in progress: first start may take time due dependency installation.
- Unsupported local Python version: local mode works with Python 3.11–3.13.