Documentation 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.yaml is the single configuration file for the PixelRAG pipeline orchestrator. It drives pixelrag index build and controls every stage from source selection through embedding and index building. All keys are optional — PixelRAG applies sensible defaults for any missing fields so you only need to declare what differs from the defaults.
File discovery
PixelRAG searches for a config file in the current working directory, in this order:pixelrag.yamlpixelrag.yml
--config flag:
Complete reference
The annotated example below shows every supported key. Comment out or omit any section you don’t need — the pipeline fills in defaults automatically.Source types
Thesource.type field selects which document provider the pipeline uses. Each type has its own required and optional fields.
| Type | Description | Required fields | Optional fields |
|---|---|---|---|
local | Indexes files from a directory. Supports PDF, HTML, Markdown, and images. | path | — |
web | Indexes URLs read from a plain-text file (one URL per line). | urls_file or preset | — |
pdf | Indexes a single PDF file or a directory of PDFs. | path | — |
kiwix | Indexes articles from a Kiwix ZIM archive served locally via kiwix-serve. | zim_file | kiwix_serve_url, book_name, num_kiwix_instances |
The
web source type automatically sets wait_network_idle: true unless you explicitly override it in the ingest section. This is because web URLs frequently serve JavaScript-rendered content that loads after the initial page load event. For all other source types (local, pdf, kiwix) the default is false, since their content is ready before load fires — and enabling it would cost ≥500 ms per page and disable the turbo capture path.Default values
These are the values PixelRAG applies when a key is absent frompixelrag.yaml. They come from DEFAULT_CONFIG in config.py:
| Key | Default | Notes |
|---|---|---|
ingest.backend | "cdp" | Fastest rendering backend. |
ingest.quality | 85 | JPEG quality for tile images. |
ingest.tile_height | 8192 | Maximum tile height in pixels. |
embed.model | "Qwen/Qwen3-VL-Embedding-2B" | HuggingFace model used for visual embeddings. |
embed.device | "cuda" | Override with auto, mps, or cpu as needed. |
output | "./index" | Directory for tiles, embeddings, and index files. |
Department-based filtering
When your source is a local directory, PixelRAG automatically assigns adepartment to each document based on its location in the directory tree. The department is the first subdirectory under the source path that contains the file.
Example directory layout:
./docs/engineering/report.pdf is indexed with department="engineering". A file directly under ./docs/ has no department (empty string).
At search time, pass the department field to restrict results to a single department:
n_docs results are always returned when the department has enough indexed content.