5D Library › Retrieval-Augmented Generation Geometry, Reciprocal Rank Fusion and Multi-Agent Error Cascades · 中文

Chapter 7. The Routing of the Qilue and Han Fei’s Canyan: Two Ancient Methods of Retrieval and Verification

Why read Liu Xiang, Liu Xin and Han Fei here

The imperial library of two thousand years ago faced a retrieval problem too: more and more books, and how was anyone to find them? At the end of the Western Han, Liu Xiang and his son Liu Xin collated the library, wrote a summary of each work, and divided the whole catalogue into a few great divisions — the Qilue (Seven Summaries), China’s earliest systematic catalogue. Earlier still, Han Fei had asked another question: how is one to judge whether a claim is credible? His answer was canyan — checking claims against several lines of evidence. This chapter reads the two as ancient designs for a retrieval system — routing by category and verification by several sources — and uses the models of Chapters 1 and 4 to work out when each works and when it fails.

The texts

Source text

Ban Gu, Hanshu, “Treatise on Literature”.

每一書已,向輒條其篇目,撮其指意,錄而奏之。會向卒,哀帝復使向子侍中奉車都尉歆卒父業。歆於是總群書而奏其七略,故有輯略,有六藝略,有諸子略,有詩賦略,有兵書略,有術數略,有方技略。

Whenever a book was finished, Xiang listed its sections, summarised its import, wrote this down and presented it to the throne. When Xiang died, Emperor Ai had Xiang’s son Xin, Palace Attendant and Commandant of Imperial Equipages, complete his father’s work. Xin then gathered all the books and presented his Seven Summaries: there were the Summary of Collections, the Summary of the Six Arts, the Summary of the Masters, the Summary of Poetry and Rhapsodies, the Summary of Military Texts, the Summary of Calculations and Arts, and the Summary of Recipes and Techniques.

Han Feizi, “Xianxue” (Eminent Teachings).

無參驗而必之者,愚也;弗能必而據之者,誣也。

To assert something as certain without checking it against evidence is foolish; to rely on what one cannot be certain of is deceit.

(班固 1962; 王先慎 1998; Han 1964)

Note

Edition and checking. The Hanshu passage has been checked word for word against the text on Wikisource. The Han Feizi sentence has been checked against Wang Xianshen’s Han Feizi jijie. The account of Liu Xiang’s collation — one person reading and checking the text against itself is jiao, one holding the copy while another reads aloud, “like enemies facing each other”, is chou — survives as fragments of the Bielu quoted in later compendia; this book paraphrases it rather than quoting it, and its source has been checked. The English renderings are the author’s own.

Canyan: the conditions for checking against several sources

Han Fei says that asserting without checking is foolish, and acting on what cannot be made certain is deceit. In Chapter 4’s terms, canyan is a vote among several independent sources. Part B gives kk sources, each right with probability 0.8, and takes the majority: with independent sources, three lift accuracy to 0.8960 and seven to 0.9667. But if in a share cc of cases all the sources are really repeating one original, then kk sources are worth one: at c=0.6c = 0.6 seven sources reach only 0.8667.

Part C models Liu Xiang’s collation by two readers: each catches seven errors in ten. If their misses are independent, together they catch 0.910; if in six cases in ten they miss the same errors, only 0.784.

Hypothesis · not established

The author’s hypothesis about the text (not yet tested): Han Fei’s canyan stresses the independence of the lines of evidence (name against reality, words against deeds), not their number; so the Han Feizi should treat claims that “everyone says the same” with suspicion rather than trust. What would show it wrong: passages in the Han Feizi that take many voices saying the same thing as sufficient grounds for belief, without asking whether they share a source.

Note

The limits of the analogy. This chapter reads ancient cataloguing and checking as models of retrieval and voting, to bring out their mathematical structure. It does not claim that Liu Xiang, Liu Xin or Han Fei had probability concepts in a modern sense, nor does it assess the scholarly merits of the Qilue’s classification.

Summary

The Qilue’s classify-then-search is two-stage retrieval: searching a smaller collection is more accurate, but it beats searching everything only if the classification itself is more than about 0.656 accurate. Han Fei’s canyan is a vote among sources: with independent sources, seven that are each 80 % reliable lift accuracy to 0.9667; sources that share an origin are worth one however many there are. Two-reader collation works the same way: independent misses let the pair catch 0.910 of errors, shared misses only 0.784. The two ancient methods reach the same conclusion as Chapters 1 and 4 — reliability comes from independence, not from numbers.

References

Han, Fei. 1964. Han Fei Tzu: Basic Writings. Translated by Burton Watson. Columbia University Press.
王先慎. 1998. 韩非子集解. 新编诸子集成. 中华书局.
班固. 1962. 汉书(点校本). 中华书局.

Fan, Y. (2026). Retrieval-Augmented Generation Geometry, Reciprocal Rank Fusion and Multi-Agent Error Cascades: High-Dimensional Concentration of Measure, Hybrid Lexical-Dense Retrieval Bounds and Verifier-Gated Fixed Points [检索增强生成几何、倒数秩融合与多智能体误差级联] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090170 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).