PixelRAG is a Python package (≥ 3.12) distributed on PyPI under the nameDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/StarTrail-org/PixelRAG/llms.txt
Use this file to discover all available pages before exploring further.
pixelrag. The core install is intentionally lightweight — it gives you the pixelshot renderer and the pixelrag CLI without pulling in PyTorch or FAISS. Heavier stages like embedding and serving are opt-in extras so you only install the dependencies your use case actually needs.
Package extras
Each extra activates a distinct part of the pipeline. Install one, several, or all of them depending on what you intend to run.| Extra | What it includes | Use when |
|---|---|---|
| (none / core) | pixelshot renderer, Chrome DevTools Protocol capture, PyMuPDF | Rendering URLs and PDFs to tiles only |
embed | torch, torchvision, transformers, faiss-cpu | Building embeddings from rendered tiles |
serve | fastapi, uvicorn, faiss-cpu, transformers, torch, torchvision, qwen-vl-utils, pydantic | Running the local search server |
index | embed + markdown | Full pipeline orchestration via pixelrag index build |
qdrant | qdrant-client | Using Qdrant as the vector backend instead of FAISS |
all | embed + serve + index + qdrant | Everything except GPU and optional format extras |
gpu | faiss-gpu-cu12 (Linux only) | GPU-accelerated FAISS on Linux with CUDA 12 |
pdf | pdf2image | PDF rendering via poppler (alternative to the PyMuPDF path) |
kiwix | libzim | Ingesting Kiwix ZIM file sources |
distributed | boto3 | Distributed operations and S3-backed sources |
eval | pandas, openai, datasets, huggingface-hub, trafilatura, aiohttp, Pillow | Running evaluation benchmarks |
Installation commands
Pick the extras that match your workflow. You can always add more later by re-runningpip install with the new extra set.
uv and want pixelshot available globally on your PATH without affecting a project virtual environment, install it as a tool:
The Claude
pixelbrowse plugin requires pixelshot to be on your PATH. Installing with uv tool install or pipx install guarantees this regardless of which virtual environment is currently active.Platform notes
Linux
Linux is the primary platform and is fully supported for all pipeline stages.- CUDA GPU acceleration — Install the
gpuextra (pip install 'pixelrag[gpu]') to swapfaiss-cpuforfaiss-gpu-cu12. PyTorch is pulled from thepytorch-cu129index automatically when running on Linux, giving you CUDA 12.9 / cuDNN 9.20 support. - Bundled headless Chrome — On
linux-x64,pixelshotautomatically installs a patched turboheadless_shellbinary for fast CDP rendering. No separate Chrome installation is needed. - Multi-GPU embedding — Pass
--gpu-ids 0,1(or more IDs) topixelrag embedto distribute the embedding workload across multiple CUDA devices.
macOS (Apple Silicon)
macOS with Apple Silicon (M-series) is fully supported for rendering and index building.- MPS device — When
device: autois set inpixelrag.yaml(or passed to the embed stage), PixelRAG selects the MPS backend on macOS for PyTorch operations, giving GPU-accelerated embedding without CUDA. - System Chrome — There is no bundled headless shell for macOS.
pixelshotauto-detects your system Chrome or Chromium from standard install locations. If it isn’t found, setCHROME_PATH(see below).
Windows
The core rendering stage works on Windows using your system Chrome installation.pixelshotauto-detects Chrome from the standard Windows install paths. If detection fails, set theCHROME_PATHenvironment variable to point at yourchrome.exe.- The
gpuextra (faiss-gpu-cu12) is Linux-only and will not install on Windows. - All other extras (
serve,index,embed, etc.) install normally on Windows, though the embedding stage has only been tested with CPU and CUDA on Linux.
Chrome and Chromium
PixelRAG renders pages through a real browser (Chrome/Chromium) using the Chrome DevTools Protocol (CDP). The table below summarises how the binary is resolved on each platform.| Platform | How Chrome is found |
|---|---|
linux-x64 | A patched turbo headless_shell is downloaded and cached automatically on first use. |
| macOS | Auto-detected from /Applications/Google Chrome.app and other standard locations, or Playwright’s Chromium. |
| Windows | Auto-detected from %LOCALAPPDATA%\Google\Chrome\Application\chrome.exe and common locations. |
| Any | Set CHROME_PATH=/path/to/chrome to point at a specific binary and bypass auto-detection. |
pixelshot while Chrome is already open.
Verify your installation
After installing, confirm both CLI entry points are available:bin or Scripts directory is on your PATH, or use uv tool install / pipx install as described above.