Self-hosted alternatives to LlamaIndex

5 open options that can take over part of what LlamaIndex does, on a machine you control. Each one lists the memory it needs, how it is installed, what the licence allows and what you give up. Set your seats and hardware to see the cost next to the subscription. Checked 23 Nov 2026.

Your situation

LlamaIndexpaid plans from $500 a month · change tool
Graphics memory decides what runs. On a Mac the shared memory plays that role.
Drives the electricity and rented-GPU figures. A shared team server is often on all day: enter 24.
Options shown5open models and apps
Run without a graphics card—of those shown
Subscription today—

Marker

App Document parsing Commercial use with conditions
Datalab · latest release 2.2.0, Nov 2026

PDF and document converter to Markdown, JSON or HTML with a fast CPU mode and a GPU mode for tables, maths and scans.

Covers about 65% of what LlamaIndex is used for
Hardware

No graphics card needed · Mac with 8 GB memory · 8 GB RAM

The `fast` mode runs on CPU or Apple Silicon with 18 MB of ONNX weights; the maker reports 23.6 pages per second on its own benchmark. The `balanced` mode sends hard pages to the Surya 2.5 model (689M parameters) on an NVIDIA GPU at 16.9 pages per second; its VRAM need is not stated. Surya used 4.3 to 4.8 GB of memory on an M4 Max, from which the RAM and Mac figures are derived. Disk need is not stated.
Setup

One command

`pip install marker-pdf`, then `marker <folder> --output_dir out`; the GPU mode also needs Docker with the NVIDIA toolkit, and Macs need llama.cpp's server.Needs: llama.cpp server or vLLM (only for the balanced and vllm modes)
Licence

Apache-2.0 (code); modified AI Pubs OpenRAIL-M (model weights)

The model weights are free for research, personal use and startups under USD 5 million in funding or revenue; other commercial use needs a paid licence.
Strong at

The CPU mode is quick enough for bulk jobs, and one tool handles both digital and scanned PDFs.

What you give up

Larger companies must pay for the model weights, and you get converted text, not ready field extraction or a review workflow.

MinerU 4.2.3

App Document parsing Commercial use with conditions
OpenDataLab · released Nov 2026

Document parser that turns PDFs and scans into Markdown or JSON, with CPU-only and GPU model tiers.

Covers about 65% of what LlamaIndex is used for
Hardware

No graphics card needed, 8 GB card comfortable · Mac with 16 GB memory · 8 GB RAM

From the README table. Basic tier (ONNX): 0.8 GB of models, 2 GB RAM, CPU only. Standard and advanced tiers: about 2 GB of models, 8 GB RAM on CPU, or 16 GB RAM with a GPU or Apple Silicon and 8 GB of VRAM or more. Disk figure is the model download; the `full` extra for NVIDIA servers takes about 5 GB more. No speed in pages per second is stated.
Setup

One command

`uv pip install -U "mineru>=4.0,<5"`, then `mineru parse <file>`; the base install covers CPU, Apple Silicon and common GPUs.
Licence

MinerU Open Source License (Apache-2.0 based)

A commercial licence is needed above 100 million monthly active users or USD 20 million monthly revenue, and online services must state that they use MinerU.
Strong at

One package scales from a CPU-only laptop to a GPU server, with memory needs stated for each tier.

What you give up

It returns document text and structure, not validated business fields, and there is no hosted review interface or support contract.

Docling

App Document parsing Commercial use allowed
Docling project (LF AI & Data, started at IBM) · latest release 2.152.0, Nov 2026

Python library and command line tool that converts PDFs, Office files and scans to Markdown or JSON with layout, tables and OCR.

Covers about 60% of what LlamaIndex is used for
Hardware

No graphics card needed · Mac with 8 GB memory · 8 GB RAM

Runs on CPU; a GPU is optional. The Docling technical report measured 1.27 pages per second and 6.2 GB peak memory on an Apple M3 Max, and 0.60 pages per second on a 16-core Xeon, with 4 threads and OCR off. Those figures come from the 2024 report, not the current release, and the RAM and Mac figures are derived from them. Disk need is not stated.
Setup

One command

`pip install docling`, then `docling <file or URL>` writes a Markdown file; model weights are fetched from Hugging Face.
Licence

MIT

Strong at

Runs fully offline on a laptop CPU and reads many formats besides PDF.

What you give up

It returns Markdown or JSON, not named fields, so the invoice-style field extraction and review screens of paid tools take extra work.

PaddleOCR

App Document parsing Commercial use allowed
PaddlePaddle (Baidu) · latest release 3.7.0, Jun 2026

OCR toolkit with the PP-OCRv6 text recognition models and the PaddleOCR-VL 1.6 document parsing model, with Markdown and JSON output.

Covers about 55% of what LlamaIndex is used for
Hardware

No graphics card needed, 12 GB card comfortable · Mac with 8 GB memory

PP-OCRv6 text recognition runs on CPU. PaddleOCR-VL 1.6 (about 1B parameters) runs on NVIDIA GPUs with compute capability 7.0 or higher, on x64 CPUs and on Apple Silicon. The docs give no memory figures; they give tuning values for an RTX 3060 (12 GB), used here as the recommended card. The Mac figure is derived from the model size. RAM and disk needs are not stated.
Setup

Manual setup

Install PaddlePaddle for your CPU or CUDA version, then `pip install "paddleocr[doc-parser]"`; Docker images exist for the vLLM-served setup.
Licence

Apache-2.0

Strong at

Covers many languages on plain CPU: PP-OCRv6 handles 50 languages in one model and PaddleOCR-VL supports 109.

What you give up

Setup takes several steps and matching CUDA versions, the docs give little sizing guidance, and field extraction or review workflows are not included.

RAGFlow 1.0.0

App Document chat and search Commercial use allowed
InfiniFlow · released Nov 2026

Self-hosted RAG engine that parses complex documents, builds a searchable knowledge base and answers questions with agents on top.

Covers about 45% of what LlamaIndex is used for
Hardware

10 GB graphics memory minimum, 20 GB comfortable

RAGFlow's recommended starting configuration is 4 CPU cores, 16 GB RAM and 50 GB disk, before any local model. The README says macOS is not currently supported for the Docker deployment. Model figures are for a mid-size model served by Ollama: Gemma 4 12B, 4-bit GGUF, 8.0 GB file, about 10 GB memory. Recommended figure is Gemma 4 26B, 4-bit, 18 GB file, about 20 GB. The sources state no speed. Disk is RAGFlow's 50 GB plus the model file.
Setup

Container

Clone the repository, check out the release tag and start it with Docker Compose, then add an LLM, an embedding model and a reranker in the web interface.Needs: Ollama or another model runner, A mid-size chat model such as Gemma 4 12B, An embedding model
Licence

Apache-2.0

Strong at

Built around parsing complex documents before retrieval, under a plain Apache-2.0 licence.

What you give up

It is heavier to run than a hosted PDF chat tool (16 GB RAM, several services, no macOS support), and answer quality depends on the local model you attach.

See all 94 self-hosted options · Hosted alternatives to LlamaIndex

What the hardware costs

The cost lines above use this table. Purchase prices run from the maker's list price to the highest shop listing seen, and for graphics cards they cover the card alone, not the rest of the computer. Shop prices for graphics cards currently sit well above list. Power is the maker's maximum draw, so electricity figures are an upper bound. Rental is the lowest on-demand hourly price found on the providers' own pricing pages, checked 23 Nov 2026.

HardwareMemoryTo buyMax powerTo rent
Ordinary laptop with 16 GB of memory and no separate graphics card14-inch business laptop with an Intel Core Ultra 5 and 16 GB RAM, 14-inch laptop with an Intel Core i7 H-series and 16 GB RAM 16 GB $780 to $1,620 37 W —
Desktop with an 8 GB graphics cardGeForce RTX 5060 (8 GB), GeForce RTX 5050 (8 GB), Radeon RX 9060 XT (8 GB) 8 GB $249 to $620 145 W from $0.12/hSaladCloud
Desktop with a 12 GB graphics cardGeForce RTX 5070 (12 GB), Arc B580 (12 GB) 12 GB $549 to $940 250 W from $0.17/hSaladCloud, 1 more checked
Desktop with a 16 GB graphics cardGeForce RTX 5060 Ti (16 GB), GeForce RTX 5070 Ti (16 GB), GeForce RTX 5080 (16 GB) 16 GB $349 to $2,155 300 W from $0.15/hHyperstack, 5 more checked
Desktop with a 24 GB graphics cardRTX PRO 4000 Blackwell (24 GB, workstation card), GeForce RTX 4090 (24 GB, previous generation), Radeon RX 7900 XTX (24 GB, previous generation) 24 GB $3,397 to $5,535 450 W from $0.27/hRunpod, 9 more checked
Desktop with a 32 GB graphics cardGeForce RTX 5090 (32 GB), RTX PRO 4500 Blackwell (32 GB, workstation card) 32 GB $1,999 to $7,329 575 W from $0.60/hSaladCloud, 2 more checked
Workstation with a 48 GB graphics cardRTX PRO 5000 Blackwell (48 GB), RTX 6000 Ada Generation (48 GB) 48 GB $8,669 to $9,085 300 W from $0.35/hThunder Compute, 9 more checked
Server with an 80 GB data-centre cardNVIDIA H100 (80 GB), NVIDIA A100 (80 GB) 80 GB $27,295 350 W from $1.09/hThunder Compute, 17 more checked
Two or more large cards in one machine (about 96 to 192 GB in total)2x NVIDIA H100 or A100 (160 GB in total), 2x RTX PRO 5000 Blackwell (96 GB in total), 2x RTX PRO 6000 Blackwell (192 GB in total) 160 GB $18,170 to $34,318 600 W from $3.20/hKoyeb, 4 more checked
Mac with 16 GB unified memoryMac mini (M6), MacBook Air 13-inch (M5), MacBook Air 15-inch (M5) 16 GB $899 to $1,499 70 W —
Mac with 32 GB unified memoryMac mini (M6), MacBook Air 13-inch (M5), MacBook Pro 14-inch (M6) 32 GB $1,499 to $2,399 70 W —
Mac with 64 GB unified memoryMac mini (M5 Pro), Mac Studio (M5 Max), MacBook Pro 14-inch (M5 Pro) 64 GB $2,699 to $3,799 145 W —
Mac with 128 GB unified memoryMac Studio (M5 Max), MacBook Pro 14-inch (M5 Max) 128 GB $5,099 to $6,699 200 W —

Before you switch

When does running it yourself pay off?

When the hardware is already on the desk, when several people share one machine, or when the data may not leave the building. For one person with no suitable hardware, a subscription usually costs less than renting a graphics card by the hour.

What does "covers about 70%" mean?

It is an editorial estimate of how much of the paid tool's everyday job the open option can take over for a typical user. It is not a benchmark score. The "what you give up" line says where the missing part is.

Why does the licence matter?

Open weights are not always free for business use. Some models are released for research or personal use only, and some apps keep team features in a paid edition. Tick "commercial work" to hide the ones that do not allow it, and read the licence before building on the ones marked "with conditions".

Is there a middle route?

Yes. Many open language models are also sold per token by inference providers. Nothing has to be installed, the model is the same, and the bill follows usage. Where that exists, the cost lines show it next to the other routes, and the token cost calculator compares those providers.

How were the hardware figures chosen?

From the maker's model card or documentation, or from the size of the published build named in each entry. "Minimum" gives usable results; "comfortable" is what the entry needs to run at good quality and speed.