Sunday, June 1, 2025

Data Science: Querying DnD Session Notes with Vector Databases and AI

Last week, we had some guests at work and one of them presented a multi-agent model for creating database queries with some clever documentation retrievals. It was very exciting and something I've wanted to do, so I decided to take some steps and familiarize myself with some of the concepts. I learn best by practicing, though, so I set out to do a simple hack day project: a way to create a retrieval augmented generation (RAG) application that would take some notes I have from our multi-year Dungeons and Dragons (DnD) campaign and generate appropriate responses when passed through an AI large language model (LLM). 

Let's go through what I ended up building.
You can also follow along by looking through the GitHub repo for it: https://github.com/dr-rodriguez/ollama-ttrpg-query

Sunday, May 25, 2025

Book Review: The Dispossessed by Ursula K. Le Guin

The Dispossessed is a major book in the science fiction community, having won multiple awards and being highly regarded. I had, for whatever reason, never actually read it, though I've read other of Ursula Le Guin's books. So after hearing about it recently at work I decided to go ahead and give it a read.

Anarres, Shevek’s homeland, is a bleak moon settled by an anarchic utopian civilization, where there is no government, and everyone, at least nominally, is a revolutionary. It has long been isolated from other worlds, including its mother planet, Urras—defined by warring nations, great poverty, and immense wealth. Now Shevek, a brilliant physicist, is determined to unify the two civilizations. In the face of great hostility, outright threats, and the pain of separation from his family, he makes an unprecedented trip to Urras. Greater than any concern for his own wellbeing is the belief that the walls of hatred, distrust, and philosophic division between his planet and the rest of the civilized universe must be torn down. He will seek answers, question the unquestionable, and explore differences in customs and cultures, determined to tear down the walls of hatred that have kept them apart.

To visit Urras—to learn, to teach, to share—will require great sacrifice and risks, which Shevek willingly accepts. Almost immediately upon his arrival, he finds not the egotistical philistines he expected, but an intelligent, complex people who warmly welcome him. But soon the ambitious scientist and his gift is seen as a threat, and in the profound conflict that ensues, he must reexamine his beliefs even as he ignites the fires of change.

Read on for my spoiler-free review.

Sunday, April 13, 2025

Book Review: I, Robot by Isaac Asimov

Some time ago, a YouTuber I follow, Elle Cordova, started an online book club with I, Robot by Isaac Asimov. While I didn't explicitly join it at the time as I was reading something else, I realized that I hadn't actually read I, Robot. I've read some of Asimov's other robot stories, like The Caves of Steel as well as the Foundation series, and watched movies like the one made from I, Robot and The Bicentennial Man. So I'm familiar with Asimov, just probably missing a lot of his shorter books. Regardless, I decided to pick this up and see what it was all about. Because this is a series of short stories I'll forgo my usual format and just write a few paragraphs on it.

Sunday, February 9, 2025

Book Review: Rendezvous with Rama by Arthur C. Clarke

I had read Rendezvous with Rama a long time ago, but I've been in a bit of a sci-fi reading phase and wanted to re-read it. Here is the Goodreads blurb:

An all-time science fiction classic, Rendezvous with Rama is also one of Clarke's best novels--it won the Campbell, Hugo, Jupiter, and Nebula Awards. A huge, mysterious, cylindrical object appears in space, swooping in toward the sun. The citizens of the solar system send a ship to investigate before the enigmatic craft, called Rama, disappears. The astronauts given the task of exploring the hollow cylindrical ship are able to decipher some, but definitely not all, of the extraterrestrial vehicle's puzzles. From the ubiquitous trilateral symmetry of its structures to its cylindrical sea and machine-island, Rama's secrets are strange evidence of an advanced civilization. But who, and where, are the Ramans, and what do they want with humans? Perhaps the answer lies with the busily working biots, or the sealed-off buildings, or the inaccessible "southern" half of the enormous cylinder. Rama's unsolved mysteries are tantalizing indeed. Rendezvous with Rama is fast moving, fascinating, and a must-read for science fiction fans. Clarke collaborated with Gentry Lee in writing several Rama sequels, beginning with Rama II.

Read on for my spoiler-free review.