Papers › KohakuRAG: A simple RAG framework with hierarchical document indexing

KohakuRAG: A simple RAG framework with hierarchical document indexing

8 Mar 2026arXiv:2603.07612added by Syntology

Shih-Ying Yeh, Yueh-Feng Ku, Ko-Wei Huang, Buu-Khang Tu

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Retrieval-augmented generation (RAG) systems that answer questions from document collections face compounding difficulties when high-precision citations are required: flat chunking strategies sacrifice document structure, single-query formulations miss relevant passages through vocabulary mismatch, and single-pass inference produces stochastic answers that vary in both content and citation selection. We present KohakuRAG, a hierarchical RAG framework that preserves document structure through a four-level tree representation (document → section → paragraph → sentence) with bottom-up embedding aggregation, improves retrieval coverage through an LLM-powered query planner with cross-query reranking, and stabilizes answers through ensemble inference with abstention-aware voting. We evaluate on the WattBot 2025 Challenge, a benchmark requiring systems to answer technical questions from 32 documents with ±0.1% numeric tolerance and exact source attribution. KohakuRAG achieves first place on both public and private leaderboards (final score 0.861), as the only team to maintain the top position across both evaluation partitions. Ablation studies reveal that prompt ordering (+80% relative), retry mechanisms (+69%), and ensemble voting with blank filtering (+1.2pp) each contribute substantially, while hierarchical dense retrieval alone matches hybrid sparse-dense approaches (BM25 adds only +3.1pp). We release KohakuRAG as open-source software at https://github.com/KohakuBlueleaf/KohakuRAG.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2603.07612")

Code

Syntology Ran 15 of 18 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · violated contract; 5 ran · our draft was wrong; 1 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 15 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

KohakuBlueleaf/KohakuRAG found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 15 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
5ran · our draft was wrong
1ran · fixture could not drive it
8ran
3unverified

Licence: 18 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from KohakuBlueleaf/KohakuRAG. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

DocumentPayload KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran no licence file found · pointer only · 46e8ab27730924a9 · report
JinaEmbeddingModel KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran no licence file found · pointer only · 320e151285bf8507 · report
ParagraphPayload KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran no licence file found · pointer only · aea7e26e65d857e5 · report
SectionPayload KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran no licence file found · pointer only · 6a3228ba6030b84c · report
SentencePayload KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran no licence file found · pointer only · 069158d689ff80d8 · report
StoredNode KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran no licence file found · pointer only · 15c952712553def5 · report
TreeNode KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran no licence file found · pointer only · 500778942c83248c · report
_detect_device KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran no licence file found · pointer only · e08819c54ed28b5a · report
_normalize KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran · violated contract fingerprinted no licence file found · pointer only · 01bc94c373659103 · report
average_embeddings KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran · fixture could not drive it fingerprinted no licence file found · pointer only · 1bb38824b3bd6c48 · report
paragraph_payload_from_text KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 0287add59cf39750 · report
sections_from_text KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · f087c84a8cc6ed08 · report
sentence_payloads_from_text KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · aebc0efc1e03e644 · report
split_paragraphs KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 80f1ea2827f23418 · report
split_sentences KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 7d740ec94a7e44e8 · report
DocumentIndexer KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology unverified no licence file found · pointer only · c3d5d1849212a614 · report
EmbeddingModel KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology unverified no licence file found · pointer only · 1d1accc5bae7d216 · report
NodeKind KohakuBlueleaf/KohakuRAG/src/kohakurag/indexer.py found in paper text by Syntology unverified no licence file found · pointer only · 1bf84862f6855b5b · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2603.07612, was issued in March 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections