Vector RAG, a Compiled Wiki or a Skill Folder? Three Knowledge-Base Papers Compared

Three arXiv preprints on LLM knowledge bases: a compiled wiki against vector RAG, compiled artifacts under a grep harness, and Knowledge-as-Skill.

Three knowledge-base papers compared. Figure: grounded answers by question class for vector RAG and a compiled wiki, and token change with claim-evidence substitution on FRAMES.

This post is for people who keep a growing pile of Markdown notes, docs or help articles and want an LLM agent to answer from it. A common first step is to chunk everything into a vector index and retrieve the closest pieces. Three arXiv preprints from September and October 2026 question that default from three directions. One runs vector RAG and an LLM-compiled wiki side by side over the same course material. One, from the team behind the open-source RAGFlow project, measures what compiled artifacts add once an agent can already search with BM25 and grep. One proposes Knowledge-as-Skill, a folder layout that lets an agent browse a knowledge base the way it browses skills.

All three are arXiv preprints with no journal or conference version listed on their arXiv pages as of November 23, 2026, so every number below is a result on that paper’s own setup. The second paper describes RAGFlow’s own pipeline, so its figures are the developer’s runs on its own system.

Two-panel chart on a black background. Left panel, titled Grounded answers by question class: on single-page questions (n=45) vector RAG 87% and compiled wiki 98%; on cross-page questions (n=14) vector RAG 64% and compiled wiki 100%. Right panel, titled Token change with claim-evidence substitution on FRAMES: evidence sufficient -91%, evidence insufficient +1.9%, FRAMES average -38%, against a BM25 and grep harness with no compiled index.
Figure. Left: share of answers whose every claim traces to the material the answering model saw, from arXiv 2609.25303 (Table 2). Right: change in total query tokens against the uncompiled harness, from arXiv 2610.41172 (Table 4). The panels come from different papers and setups.

The question in one paragraph

An agent answering from a knowledge base has to find the right material, then use it without filling gaps from its own memory. Vector RAG handles the finding with similarity-ranked chunks. The approaches in these papers do more work at ingest: an LLM rewrites the corpus into linked pages, extracts claims with their source sentences, or attaches descriptions and metadata. The papers ask whether that upfront work pays, and on which measure.

Course wiki vs vector RAG: the biggest gain is on cross-page questions

Potential for Enhanced Learning in Machine Learning Classes by Using Wiki LLM Indexing (arXiv 2609.25303, submitted September 21, 2026, School of Data Science, University of Virginia).

What it tests. The corpus, answering model, prompt, context budget and questions stay fixed; only the representation changes (Section 3). Arm A is vector RAG reused unchanged from the group’s earlier study: 1,500-token chunks with 100-token overlap in Pinecone, top 5 chunks per question. Arm B is an LLM-compiled wiki of concept pages with cross-links and citations back to the source material. The evaluated corpus is 12 wiki pages, 7 of them concept pages, which chunk into 21 vectors. Claude Opus 5 answered in both arms, and GPT-5 mini, from a different provider, gave each answer a 1 to 10 score and a grounded flag, meaning every claim traces to the material the answerer saw. Of 59 questions, 45 can be answered from one page and 14 need several.

Reported results. Overall, the wiki scores 9.95 against 9.05 and is grounded on 98% of answers against 81% (Table 1). The groundedness gap, 17 points (95% CI [7, 27]), is wider than the score gap, 0.90 points (95% CI [0.42, 1.44]). On single-page questions the wiki scores 9.96 and RAG 9.33, with 98% against 87% grounded; on cross-page questions the wiki holds at 9.93 and 100% while RAG drops to 8.14 and 64% (Table 2). Retrieval mostly worked: 43 of 45 single-page questions had a chunk from the right page in the top 5 (Section 4.1). Only 2 of the 11 ungrounded RAG answers were retrieval misses. In the other 9, the right material was in context and the answer still added detail the excerpts did not support.

Limits. The study covers one course corpus, reuses a RAG configuration not re-tuned for it, relies on a single LLM judge with a binary flag, runs each question once and does not measure cost (Section 5.4). The confidence intervals resample the 59 questions and do not cover answerer or judge variation. The wiki arm received the same fixed set of wiki sections for every question, covering the targeted material, so it had no context-selection step that could fail (Section 6). Read that way, the gap measures what vector RAG leaves behind relative to perfect context selection. The single-page groundedness gap, 11 points (CI [0, 22]), is the one comparison that does not reach significance. No code link appears in the paper.

Grep harness: compiled structure adds no accuracy, claim evidence cuts tokens

Context as Infrastructure: Knowledge Compilation for Retrieval in Agentic Systems with Harnesses (arXiv 2610.41172, submitted October 30, 2026, InfiniFlow with East China Normal University).

What it tests. Retrieval here is an agent loop: a search harness writes lexical queries, reads results, reformulates and decides when the evidence suffices (Section 1). There is no vector index; adding a dense retrieval leg lowered accuracy in the team’s runs, a direction given without a number (Section 8.1). On top of that harness the paper tests compiled artifacts: a summary tree, an outline parsed from headings, an LLM wiki, an entity-relation graph, and a tree whose leaves are claim-evidence pairs. Each claim keeps a supporting sentence copied verbatim from the source, and a pair whose evidence cannot be located in the source is discarded (Section 4.2). Extraction runs on glm-4-flash, a small model, and every condition uses the same harness on FRAMES, multi-hop questions that need facts from several Wikipedia articles (Section 8.1).

Reported results. The baseline, BM25 and grep with MiniMax M3, already answers 91.0% of FRAMES and 85% of BrowseComp-Plus without any compiled index; the two benchmarks are not comparable with each other (Table 4, Section 8.7). No structural artifact moved accuracy beyond run-to-run variation: the summary tree, wiki and graph were neutral, and the heading outline was neutral at small scale and lost accuracy at FRAMES scale (Table 3). The wiki was also expensive to build and dropped the verbatim provenance needed for audits and exact-wording questions (Section 8.2). The gain is in cost. When the gate judges the projected evidence sufficient, total query tokens fall by 91%; when it does not, they rise by 1.9%; over 200 FRAMES questions the average is a 38% saving with no measurable accuracy loss (Table 4, Sections 8.1 and 10). With the claim-leaf tree present, a decision gate cut mean end-to-end latency from 140 s to 30 s (Section 8.5).

Limits. The token saving is bought with retrieval rounds: on the 7 questions both arms answered, the claim page roughly halved query tokens while end-to-end latency roughly tripled (Section 8.4). Results come from one benchmark and one compiler model, with no confidence intervals or repeated seeds, and enterprise corpora with tables, scans and jargon may extract worse than English Wikipedia text (Section 8.8). The audit that would measure how often the gate accepts insufficient evidence is specified but not yet run (Section 8.6). Benefits claimed for the wiki, graph, timeline and other artifacts in deployment are not presented as controlled effects (Section 1). The pipeline and harness are open source in the RAGFlow repository on GitHub under Apache-2.0.

Knowledge-as-Skill: make the knowledge base describe itself

Knowledge-as-Skill: A Structural Design for Autonomous Knowledge-Base Use by LLM Agents (arXiv 2609.25991, submitted September 22, 2026, single-author preprint).

What it changes. Once an agent decides what to read, it may not know what the knowledge base contains, because plain chunks say little about scope, purpose, provenance or relations (Abstract). The design applies the progressive disclosure of the Skill protocol, built mainly for procedures, to factual knowledge in three layers (Sections 2.3 and 3). A root SKILL.md states scope, trigger conditions, navigation rules and stopping conditions but holds no domain knowledge. Each folder’s index.md lists a link plus one sentence of description per entry. Each document opens with YAML frontmatter where type, title and description are required, with tags, sources, verification stamps and an expiry date as extra fields, and a root log.md records updates (Section 3.4). A pipeline converts PDFs, Word files, web exports and notes to Markdown through MarkItDown and drafts the frontmatter and indexes (Section 4). The code is on GitHub under the MIT license.

Reported results. On the 200 expert-written questions of WixQA, a customer-support benchmark built from 6,221 Wix Help Center articles, a minimal agent with three read-only tools and a 15-turn cap reaches 0.889 Factuality and 0.816 Context Recall (Section 5.2, Table 3). The comparison values, 0.767 and 0.708, are those reported by the separate Corpus2Skill work, not a rerun. Knowledge-as-Skill is lower on grounded Faithfulness (0.810 against 0.859), Context Precision (0.761 against 0.829) and Token F1 (0.412 against 0.456), ties on Hallucination Rate at 4.5%, and takes more turns (4.015 against 2.38). DeepSeek-Flash answers and K3 judges (Section 5.2).

Limits. These are directional cross-work results, not a controlled comparison, because models, prompts and package construction differ (Abstract, Section 5.3). There is no fixed-RAG baseline under the same agent and no ablation of the individual layers (Section 6). Curated indexes need maintenance, and extra navigation turns cost latency and context (Section 6).

Why the two wiki results point different ways

The course study found its compiled wiki well ahead; the RAGFlow paper found its LLM wiki neutral on accuracy. Neither tests the other’s conditions. The course corpus is 12 pages and 21 vectors, with a baseline that retrieves the top 5 chunks once (Section 3). FRAMES needs facts from several Wikipedia articles, with a baseline harness that keeps searching until it judges the evidence sufficient (Sections 1 and 8.1). The course wiki arm received fixed sections covering each question’s material (Section 6), while the RAGFlow wiki was one more tool exposed to the harness (Section 8.1). And the course study’s widest gap is groundedness, which the RAGFlow audit does not report (Table 3).

Side by side

PaperWhat it testsBaselineDataReported resultCode
Wiki LLM Indexing (2609.25303)LLM-compiled wiki with cross-links and citationsVector RAG, top 5 of 21 chunks59 questions, one machine learning courseScore 9.95 vs 9.05; grounded 98% vs 81%; cross-page grounded 100% vs 64%No link in the paper
Context as Infrastructure (2610.41172)Claim-evidence leaves; summary tree, outline, wiki, graphBM25 and grep harness, 91.0% on FRAMESFRAMES, 200 questions for token figuresNo accuracy gain from structure; -38% tokens on average, -91% when evidence sufficesRAGFlow, Apache-2.0
Knowledge-as-Skill (2609.25991)SKILL.md, described indexes, document frontmatterCorpus2Skill’s reported valuesWixQA, 200 expert-written questionsFactuality 0.889 vs 0.767; Context Precision 0.761 vs 0.829; 4.015 vs 2.38 turnsGitHub, MIT

The rows use different benchmarks, baselines and judges, so they do not rank the three approaches.

What you can apply now

Measure a plain search loop before you build an index. In the RAGFlow runs, a harness with only BM25 and grep answered 91.0% of FRAMES, no compiled structure raised accuracy, and a dense leg lowered it. Run that baseline on your own questions and add an index only when it moves your numbers.

If you compile, keep the source sentence next to every claim. The RAGFlow pipeline discards any claim whose evidence cannot be found in the source, a check the paper credits with making a small extractor safe to use. Savings ranged from 91% when evidence sufficed to a 1.9% cost when it did not. Measure latency too: on the paired subset, tokens roughly halved and latency roughly tripled.

Score groundedness separately from correctness. In the course study the score gap was 0.90 points and the groundedness gap 17 points, and 9 of the 11 ungrounded RAG answers had the right material in context. Raw scores were close enough that a reader checking only correctness might not notice the difference (Section 5.3).

Test cross-page questions on their own. The wiki’s advantage was roughly three times larger on questions that needed more than one page (Table 2).

Describe every note and every folder. Knowledge-as-Skill puts a description, a type and sources in each document’s frontmatter and one sentence per entry in each folder index. Expect more turns: 4.015 against 2.38, in a comparison the paper calls uncontrolled.

Here is a minimal sketch of the evidence check, written for this post. It is not RAGFlow’s implementation.

import re

def norm(text):
    return re.sub(r"\s+", " ", text).strip()

def keep_verified(pairs, source_text):
    """Keep a claim only if its evidence sentence appears verbatim in the source."""
    src = norm(source_text)
    kept = []
    for pair in pairs:                     # pair = {"claim": ..., "evidence": ...}
        evidence = norm(pair["evidence"])
        start = src.find(evidence) if evidence else -1
        if start >= 0:                     # offsets refer to the whitespace-normalized text
            kept.append({**pair, "start": start, "end": start + len(evidence)})
    return kept

An exact-match check drops paraphrased evidence on purpose: the extractor may propose, but only spans found in the source are kept.

Papers

All three were at version 1 on arXiv as of November 23, 2026.

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep reading

All posts