PixelRAG renders pages and PDFs to images, embeds them with a vision model, and searches visually so layout and charts stay usable for retrieval-augmented generation.
Overview
PixelRAG targets retrieval where text parsing drops tables, charts, and layout. Documents such as web pages, PDFs, and images are rendered to screenshot tiles, indexed, and retrieved as images so a reader model can answer from visual structure. A hosted endpoint serves a pre-built index of millions of Wikipedia pages; the same pipeline can index private corpora locally.
The workflow splits into capture (pixelshot CLI with Playwright), chunking, embedding with a Qwen3-VL-Embedding model fine-tuned on screenshots, FAISS or Qdrant indexes, and pixelrag serve as a FastAPI search API. Optional Docker compose runs the API on port 8000 with mounted indexes. A Claude Code pixelbrowse skill and OpenCode npm package let agents screenshot pages instead of parsing HTML.
Install stages are modular via pip extras (embed, index, serve). Indexing is documented for Linux with CUDA and macOS with Apple Silicon; PDF support needs poppler. Training recipes for the embedding adapter live in a separate train project but published adapters can be used without retraining.
Key features
- pixelshot page and PDF rendering
- Visual embedding and FAISS index
- FastAPI search server
- Pre-built Wikipedia visual index
- Optional Qdrant vector backend
- Docker API image
- Claude and OpenCode screenshot plugins
- Visual query search
Use cases
- RAG over chart-heavy documents
- Wikipedia-style visual search
- Local PDF indexing and query
- Agent web reading via screenshots
- Multimodal retrieval pipelines