avatarLucianoSphere (Luciano Abriata, PhD)

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

3404

Abstract

ain actual words that exist in some language. By chance, some books will contain meaningful sentences, possibly a paragraph, maybe even whole pages with meaning. Even whole books, including those that differ by a single character as if it were a typo.</p><h2 id="4052">Can we find some readable content in the library’s books?</h2><p id="d81f">Yes, we can. And we can even search it thematically.</p><p id="60a9">How? By running a text generation program based on one of the modern natural language models.</p><p id="6bfe">Here I show you the results of using ChatGPT to pull out readable text from the books in the library.</p><p id="e777">First I asked ChatGPT to “show me the first chapter of a fictional page from a book in the Library of Babel”. Chance and random numbers led to the first page of a book called “The Secrets of the Universe”:</p><figure id="5dcc"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*USR5MqSP-NgMRu2DgoqLaQ.png"><figcaption></figcaption></figure><p id="6217">Next, I asked ChatGPT to “show me some internal chapter of a fiction novel somewhere in the library”. Chance led me to this page, which seemed to be the end of a chapter:</p><figure id="d488"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*f93GqCpfX-qHdnh-Z0z3pw.png"><figcaption></figcaption></figure><p id="ab52">I was curious to know what this book was about. I asked ChatGPT, and it explained that this page was the end of Chapter 7 of a novel called “The Adventures of Captain John Swift”, published in 1925 by author John Swift -who cannot be the same <a href="https://www.britannica.com/biography/Jonathan-Swift">John Swift</a> who wrote Gulliver’s travels for he lived in the XVIII century.</p><p id="b2b3">The novel is quite short, all self-contained within a few pages surrounded by tens of pages that seem to be filled with random characters. I will try to pull out the whole book, or the novel at least, and if it’s interesting enough I might post it here in a dedicated article.</p><p id="3fa8" type="7">Now that you know how to explore the Library of Babel yourself, for example using ChatGPT here, let me know if you find something interesting!</p><h1 id="6785">Some more reads</h1><div id="4c3a" class="link-block"> <a href="https://readmedium.com/the-knowledge-keeper-ac665a9d205a"> <div> <div> <h2>The Knowledge Keeper</h2> <div><h3>Novel about an AI version of Borges’ Library of Babel, that predicts what the future of information could look like.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*17bsR4pT7UArXV9v96YNSw.png)"></div> </div> </div> </a> </div><div id="fdce" class="link-block"> <a href="https://readmedium.com/back-and-again-d85df18becf6"> <div> <div> <h2>Back And Again</h2> <div><h3>Horror story with a sci-fi twist</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*vyXMwzqrIL0P599u)"></div> </div> </div> </a> </div><div id=

Options

"f60e" class="link-block"> <a href="https://readmedium.com/peace-and-action-on-a-snowy-morning-ecb13563b8e9"> <div> <div> <h2>Peace and Action on a Snowy Morning</h2> <div><h3>The gentle first snow of the season brings peace, but I must suddenly ride to work when it becomes a heavy snowfall.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*H8BjlCsDsV7cLPA8)"></div> </div> </div> </a> </div><div id="d4ef" class="link-block"> <a href="https://readmedium.com/the-history-of-switzerlands-wild-daffodils-dea42e8a4df4"> <div> <div> <h2>A story on Switzerland’s wild daffodils</h2> <div><h3>The fragrant flower grows wild in selected spots of the Swiss Canton Vaud. Associations and neighbors that protect them…</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*n378zMVWkm0ykYO_maFVOg.png)"></div> </div> </div> </a> </div><div id="12aa" class="link-block"> <a href="https://readmedium.com/self-service-markets-that-work-e9084b74d6a8"> <div> <div> <h2>Self-service markets that work</h2> <div><h3>Photography and reading about something that can only happen in the closest-to-utopia community I’ve ever known.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*L9siiE5_2C4-El9F)"></div> </div> </div> </a> </div><div id="aaea" class="link-block"> <a href="https://readmedium.com/nightmare-at-the-hotel-for-insects-fae16d918db6"> <div> <div> <h2>Nightmare at the hotel for insects</h2> <div><h3>Starts as a fairy tale, ends with deeper meanings.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*1xeoEjnfd2oJLXI9lvRp6Q.png)"></div> </div> </div> </a> </div><p id="e27e"><a href="https://www.lucianoabriata.com/"><b><i>www.lucianoabriata.com</i></b></a><i> I write and photoshoot about everything that lies in my broad sphere of interests: nature, science, technology, programming, etc. <a href="https://lucianosphere.medium.com/membership"><b>Become a Medium member</b></a> to access all its stories (affiliate links of the platform for which I get small revenues without cost to you) and <a href="https://lucianosphere.medium.com/subscribe"><b>subscribe to get my new stories</b></a><b> by email</b>. To <b>consult about small jobs</b> check my <a href="https://lucianoabriata.altervista.org/services/index.html"><b>services page here</b></a>. You can <a href="https://lucianoabriata.altervista.org/office/contact.html"><b>contact me here</b></a><b>.</b></i></p></article></body>

Browsing readable books in Borges’ Library of Babel with ChatGPT

An article blending fiction with real technology, about how to simulate access to books with readable content in the infinite library

Image edited by the author from his own generations with Dall-E-2

Index - Introduction - Accessing all books - Browsing books with readable text

Jorge Luis Borges’ short story “The Library of Babel” describes a vast library that contains every book that has ever been written, as well as every book that could ever be written. The library is so vast and complex that it is impossible for anyone to fully understand or navigate it, and the characters in the story struggle to make sense of the seemingly endless collection of books. The story is often seen as a metaphor for the vastness and complexity of human knowledge, and the difficulty of comprehending it in its entirety.

As described by Borges, the books in the Library of Babel contain every possible combination of 1312000 characters including letters, spaces, commas and periods. Of course, the vast majority of these books are pure nonsense, unreadable text. Somehow paradoxically, though, since every possible content that can ever be written is already there in one of the books, the library provides a place for philosophers, artists, writers and scientists to find inspiration.

Because sporadically, random combinations of characters will create something meaningful, either readable like a poem or a piece of it, or totally unreadable yet inspiring such as a provoking string of letters. Or even a whole book charged with meaning, or describing yet-unknown science, or writing the source code of the smart contract for a yet unknown blockchain, or of the ultimate artificial intelligence program.

Can we actually read some of the pages of the books in the Library of Babel?

A website at https://libraryofbabel.info/ attempts to display all the pages of all the books available at the Library of Babel. Of course, storing all this information would be impossible, so the pages are generated by the website on request from the numbers of chamber, bookcase, shelf, and volume chosen by the visitor.

As the about page says, Every possible permutation of letters is accessible at this very moment in one of the library’s books, only awaiting its discovery.

Here’s for example page 1 of volume 9 on shelf 4 of the bookshelf on wall 3 of chamber 1:

This page happens to have no single meaningful word, at least in the languages I know (I see some like “zoe”, “papa”, “wet”, but inside other bigger words, so I’m not counting them).

But be sure there is readable content waiting to be discovered.

In fact, in a jittery sea of randomized characters, many pages in the books of the library will contain actual words that exist in some language. By chance, some books will contain meaningful sentences, possibly a paragraph, maybe even whole pages with meaning. Even whole books, including those that differ by a single character as if it were a typo.

Can we find some readable content in the library’s books?

Yes, we can. And we can even search it thematically.

How? By running a text generation program based on one of the modern natural language models.

Here I show you the results of using ChatGPT to pull out readable text from the books in the library.

First I asked ChatGPT to “show me the first chapter of a fictional page from a book in the Library of Babel”. Chance and random numbers led to the first page of a book called “The Secrets of the Universe”:

Next, I asked ChatGPT to “show me some internal chapter of a fiction novel somewhere in the library”. Chance led me to this page, which seemed to be the end of a chapter:

I was curious to know what this book was about. I asked ChatGPT, and it explained that this page was the end of Chapter 7 of a novel called “The Adventures of Captain John Swift”, published in 1925 by author John Swift -who cannot be the same John Swift who wrote Gulliver’s travels for he lived in the XVIII century.

The novel is quite short, all self-contained within a few pages surrounded by tens of pages that seem to be filled with random characters. I will try to pull out the whole book, or the novel at least, and if it’s interesting enough I might post it here in a dedicated article.

Now that you know how to explore the Library of Babel yourself, for example using ChatGPT here, let me know if you find something interesting!

Some more reads

www.lucianoabriata.com I write and photoshoot about everything that lies in my broad sphere of interests: nature, science, technology, programming, etc. Become a Medium member to access all its stories (affiliate links of the platform for which I get small revenues without cost to you) and subscribe to get my new stories by email. To consult about small jobs check my services page here. You can contact me here.

Artificial Intelligence
Fiction
Reading
Writer
Technology
Recommended from ReadMedium