Home › Catalog › Best local LLM for RAG in 2026

Best local LLM for RAG in 2026

◆ Local RAG — Ask questions to your own documents with a local AI, no cloud · $24 · or all kits $49 →

Rankings updated on 25/11/2026

Ranking of the LLMs best suited to RAG: long context window (≥ 32k tokens to digest multiple documents), synthesis quality on provided sources, and robustness to “distractors” (irrelevant information in the prompt).

Ranking

1

🇺🇸 Inkling 2 Mini

Thinking Machines Lab · 26.4B parameters · Apache 2.0 · 1,048,576 tokens ctx

Text and vision MoE with 26.4B parameters, looped reused layers, 1M-token context, and Apache 2.0 weights.

Why this ranking 1,048,576-token context — excellent for large corpora. 26.4B parameters for high-quality synthesis.
https://huggingface.co/thinkingmachines/Inkling-2-Mini
Q4 VRAM
18 GB
25 GB at Q8
2

🇨🇳 Qwen 3.8 27B

Alibaba · 27B parameters · Apache 2.0 · 262,144-token context

Qwen 3.8 27B: dense multimodal (text + vision), 262k context, ~16 GB Q4 VRAM (18 GB of Ollama weights). Apache 2.0, agentic coding and vision.

Why this ranking 262,144-token context—excellent for large corpora. 27B parameters for high-quality summarization.
ollama run qwen3.8:27b
Q4 VRAM
16 GB
29 GB in Q8
3

🇺🇸 North Mini Code 1.0

Cohere · 30.5B parameters · Apache 2.0 · 488,000 tokens ctx

Cohere 30.5B model focused on agentic coding and reasoning. 488k context, Apache 2.0, ~18 GB VRAM in Q4.

Why this ranking 488,000-token context — excellent for large corpora. 30.5B parameters for high-quality summarization.
ollama run north-mini-code-1.0
Q4 VRAM
18 GB
33 GB in Q8
4

🇺🇸 DaisyRose-27B

RadixArk · 27.8B parameters · Apache 2.0 · 262,144-token context

Qwen 3.8 27B post-trained by RadixArk for long-running agents and coding. Official BF16, FP8, NVFP4, and GGUF weights.

Why this ranking 262,144-token context — excellent for large corpora. 27.8B parameters for high-quality synthesis.
https://huggingface.co/RadixArk/DaisyRose-27B-GGUF#quick-start
Q4 VRAM
18 GB
31 GB at Q8
5

🇺🇸 Clef 27B

Cloudflare · 27B parameters · Apache 2.0 · 262,144-token context

Cloudflare's dense 27B multimodal model, Apache 2.0, 256k context, ~16 GB Q4 VRAM: vision and reasoning on a 16 GB card, official Ollama tag.

Why this ranking 262,144-token context—excellent for large corpora. 27B parameters for high-quality summarization.
ollama pull clef
Q4 VRAM
16 GB
29 GB in Q8
6

🇨🇳 GLM 4.7 Flash

Zhipu AI · 31B parameters · MIT · 128,000 tokens ctx

GLM-4.7-Flash (MoE 31B, ~3B active): the best code/VRAM ratio in the 30B class. MIT, 128k ctx, very fast on 3090/4090.

Why this ranking 128,000-token context — excellent for large corpora. 31B parameters for high-quality summarization.
ollama run glm-4.7-flash
Q4 VRAM
19 GB
35 GB in Q8
7

Mellum 2.1 12B-A2.5B Thinking

JetBrains · 12B parameters · Apache 2.0 · 131,072 tokens ctx

JetBrains model for coding agents, with 12B parameters, 2.5B of them active. Official GGUF and an MTP variant.

Why this ranking 131,072-token context: great for large corpora. 12B parameters for high-quality summarization.
https://huggingface.co/JetBrains/Mellum2.1-12B-A2.5B-Thinking-GGUF
Q4 VRAM
9.5 GB
14.5 GB in Q8

Comparison table

Rank Model Params Q4 VRAM Context License
#1 Inkling 2 Mini 26.4B 18 GB 1 048 576 Apache 2.0
#2 Qwen 3.8 27B 27B 16 GB 262 144 Apache 2.0
#3 North Mini Code 1.0 30.5B 18 GB 488 000 Apache 2.0
#4 DaisyRose-27B 27.8B 18 GB 262 144 Apache 2.0
#5 Clef 27B 27B 16 GB 262 144 Apache 2.0
#6 GLM 4.7 Flash 31B 19 GB 128 000 MIT
#7 Mellum 2.1 12B-A2.5B Thinking 12B 9.5 GB 131 072 Apache 2.0
The Local RAG Kit

Your documents, your AI: reliable local RAG for your PDFs, notes, and emails—without sending anything to the cloud.

  • Lifetime online access
  • PDF + files
  • Refunded within 30 days

Ranking methodology

We keep chat/general models with a context of at least 32k tokens (required for useful chunking). The score favors recent models with large context windows and permissive licenses (enterprise deployment).

Criteria considered:

  • Context ≥ 32k tokens
  • Summarization quality
  • Robustness to distractors
  • Free license

The scoring is fully transparent: see our methodology for details on VRAM/tokens/sec calculations.

Frequently asked questions

What context size makes for a good RAG?

Minimum 32k tokens to handle 5-10 chunks of ~2k tokens + the prompt. Ideal: 128k tokens (Inkling 2 Mini has 1,048,576), so you can take in entire documents without aggressive chunking.

Which model for RAG on 24 GB VRAM (RTX 4090)?

Mistral Small 3.1 24B in Q4_K_M or Qwen 2.5 32B fit in 24 GB in Q4. For Llama 3.3 70B, you need to drop to Q2/Q3 or add a second card.

Which embedding should you pair with these LLMs?

For French: BGE-M3, multilingual-e5-large, or the Mistral embeddings. See the French embeddings guide.

Which local RAG stack is recommended?

Ollama (LLM server) + ChromaDB or Qdrant (vector store) + LlamaIndex or LangChain (orchestration). See the complete guide.

Go further

BestLLMfor Kits The reference guide by use case
All kits for life — $49