This is a comprehensive guide that consolidates all LightRAG and Docling documentation. For focused reading, see the individual pages:

For a quick overview, see LightRAG Bucket Overview.


Overview

This page documents the design, debugging, and deployment of a self-hosted RAG pipeline on an 8 GB CPU-only Fedora VM (Dell OptiPlex 5060 host), using LightRAG as the RAG server, docling-serve as the document parser, and three local llama.cpp model roles served through a single router. Rootless Podman is deployed as Quadlet units. Auth is enabled with API key and JWT accounts.

The RAG stack was later archived after the realization that direct .md file access better served the original goal of a quiz agent over an Obsidian notes vault. The deployed architecture remains in place but is not the active focus.


Document Scope, Conventions, and Era Timeline

This document consolidates a multi-chat series documenting the design, debugging, and eventual archiving of a self-hosted LightRAG + Docling RAG stack on an 8 GB CPU-only Fedora VM.

Era Timeline

EraKey CharacteristicsPrimary Source
0Initial deployment. Gemma-3-4B LLM; Qwen3-Embedding-8B (3072d); host.containers.internal; planned rag-sync.py; no ! image rulesFile 10
Awrap_images.py introduced; stock docling-serve-cpu; DOCLING_SERVE_ENABLE_UI=true; MiniCPM-V-2 VLMFile 6
B! image rules added; Qwen2-VL-7B VLM; wrap_images.py still in useFile 7
CDocling patched (90%-filter disabled); wrap_images.py retired; VLM -> Qwen2.5-VL-3B; Tesseract OCR; force_ocr investigationFile 1 (Docling)
DLaptop-GPU offload experiment (shelved). Root cause of unreachability was nftables, not LightRAG. Led to the split-server recommendationFile 8
EJSON extraction; Qwen3.5-4B thinkless on 9933; split servers 9931 / 9933 / 9932; MAX_EXTRACT_INPUT_TOKENS=8000; dedup design specFiles 3, 4
HDedupe script (dedupe_entities.py) evolved to complete form; layers 1-4File 1 (dedupe)
GQuadlet conversionFile 9
DeployedSingle router on 9931 with presets.ini role aliases; real API keys; auth block; Quadlet; pinned Containerfile; Docling port not exposed.env, Containerfile, dedupe_entities.py, docling.build, docling.container, lightrag.container, rag.network, presets.ini, llama-server.service
FRAG archived; quiz agent pivots to direct .md file accessFile 5

Caveats Up Front

  1. The deployed .env and llama-server.service have a small inconsistency (llama-server binds 127.0.0.1 only; .env addresses host.containers.internal:9931). See Auth and API Keys.
  2. The uploaded presets.ini has the LightRAG-* role sections commented out, while the deployed .env uses those role names. The live presets.ini presumably has them uncommented. See Auth and API Keys.
  3. The uploaded Containerfile still says :latest; the user reports the live image is digest-pinned. See Auth and API Keys.

Focused Documentation

For detailed information on specific topics, see the individual pages:

Server and Deployment

Parsing

  • Docling Parsing - Document parsing, the 90% full-bleed filter fix, and OCR settings

Routing

Extraction

Deduplication

Benchmarking

Authentication