The Wise Librarian of Patliputra
In the ancient city of Patliputra lived a librarian named Vidya — gifted with a memory so vast she could recite the great epics, the Vedas, and a thousand royal decrees from heart. Pilgrims travelled from distant kingdoms to ask her questions about medicine, law, and statecraft. She answered them all, and rarely was she wrong.
When the King Asked About His Grain
One day the king sent a messenger: "How many sacks of grain were collected from the eastern provinces last harvest?" Vidya thought hard. She remembered every harvest from her childhood. But the most recent harvest? She had not been there. She had not seen the ledgers. So she invented a number that sounded plausible — 4,200 sacks, she said. The king's ministers acted on it. Two months later they discovered the true number had been 1,800. Famine struck the eastern villages.
“A mind that has memorised the past cannot answer about the present.”
The Apprentice With the Scroll-Cart
Vidya, ashamed, took on an apprentice named Smriti. Smriti was not as clever — she had memorised nothing. But she pulled behind her a small wooden cart filled with the kingdom's most recent ledgers, sorted by topic and tagged with coloured silk. When a question came, she did not answer from memory. She fetched the relevant scrolls, read them aloud, and only then composed her reply.
The King Asks Again
The king sent another messenger: "How many wells were dug in Magadha this year?" Vidya did not know. But Smriti walked to her cart, pulled out the public-works ledger, found the entry, and answered: "Forty-seven, my lord, of which thirty-one are in the southern districts." She was correct. The minister rewarded her with a silver coin.
“A small library always at hand beats a vast library locked in memory.”
When the Cart Grew Too Large
Word spread. Soon the cart held ten thousand scrolls. Smriti could not lift it. Worse, when a question came, she did not know which scroll to pull first. She wasted hours reading the wrong texts before finding the right one. Vidya watched, then taught her a new trick: "Tag every scroll with the three words that capture its essence. When a question arrives, find the tags that overlap. Read those scrolls first."
“Without good labels, a great library is a great pile.”
The Two Skills Together
In time, Smriti became wiser than Vidya — for she carried the lightness of fresh memory and the depth of the great archive together. Pilgrims now asked her the deepest questions of state, and she answered with the certainty of one who had read the answer that very morning. She was the librarian who never forgot, because she had stopped pretending to remember.
🪔 Deepak — the lamp of meaning · what this fable means in code
The librarian Vidya is a language model trained on yesterday's books. When asked about today, she invents — what we call hallucination. The cart of fresh scrolls is your vector database. The coloured silk tags are embeddings. The act of pulling the right scrolls before composing a reply is retrieval. Together: Retrieval-Augmented Generation. The model stops pretending to remember and starts truly knowing.


