News for hackers. Stuff that matters.

pmaze

The connections are meaningful to me in so far as they get me thinking about the topics, another lens to look at these books through. It's a fine balance between being trivial and being so out there that it seems arbitrary.

A trail that hits that balance well IMO is https://trails.pieterma.es/trail/pacemaker-principle/. I find the system theory topics the most interesting. In this one, I like how it pulled in a section from Kitchen Confidential in between oil trade bottlenecks and software team constraints to illustrate the general principle.

I ended up judging where to draw the line. Its initial suggestions were genuinely useful and focused on making the basic tool use more efficient. e.g. complaining about a missing CLI parameter that I'd neglected to add for a specific command, requesting to let it navigate the topic tree in ways I hadn't considered, or new definitions for related topics. After a couple iterations the low hanging fruit was exhausted, and its suggestions started spiralling out beyond what I thought would pay off (like training custom embeddings). As long as I kept asking it for new ideas, it would come up with something, but with rapidly diminishing returns.
The names & descriptions definitely have that distinct LLM flavour to them, regardless of which model I used. I decided to keep them, but as short as possible. In general, I find the recombination of human-written text to be the main interest.

There's two stages to the linking: first juxtaposing the excerpts, then finding and linking key phrases within them. I find the excerpts themselves often have interesting connections between them, but the key phrases can be a bit out there. The "fictions" to "internal motives" one does gel for me, given the theme of deceiving ourselves about our own motivations.

Show HN: I used Claude Code to discover connections between 100 books

https://trails.pieterma.es/

I think LLMs are overused to summarise and underused to help us read deeper.I built a system for Claude Code to browse 100 non-fiction books and find interesting connections between them.I started out with a pipeline in stages, chaining together LLM calls to build up a context of the library. I was mainly getting back the insight that I was baking into the prompts, and the results weren't...

( Read More... | 151 comments | on HN )

Show HN: Syntopic reading with Claude Code – connections across 100 books

https://trails.pieterma.es/

LLMs are often used to reduce the amount of reading we do. I’m hopeful they can be used to augment our reading habits instead.I gave Claude Code a set of CLI tools to explore a library of 100 non-fiction books (sampled from HN’s favourites) and surface sequences of excerpts that link ideas.I was first intrigued when it linked Steve Jobs’ self-deception to an excerpt about Theranos, and it ended...

( Read More... | no comments | 3 points | on HN )
Re:Ask HN: What Are You Working On? (June 2025) on Monday June 30, 2025 @12:46PM (#44425339)
https://hnbooks.pieterma.es

I scraped HN's 1000 most mentioned books and visualised them. This month I used a new embedding model (Nomic), switch out UMAP for PaCMAP, and added automatic cluster labelling.

The clustering and dimensionality reduction aren't quite as stable as I'd like, but most seeds give decent results now.

Re:Show HN: I mapped HN's favorite books with GPT-4o on Tuesday September 10, 2024 @05:50AM (#41499085)
I did, there was a first round of UMAP to 50 dimensions. Running HDBSCAN on the full embeddings gave bad results, lots of singleton clusters.
Re:Show HN: I mapped HN's favorite books with GPT-4o on Tuesday September 10, 2024 @05:38AM (#41499015)
The crash was indeed not intended - my mistake! Should be fixed now.

You've got the cluster semantics spot on, to be honest. Broad genres are grouped together, with a tendency for sub-genres to be grouped locally within those.

There is no interpretation of the overall shapes or the global structure, those are more a result of a particular UMAP run than inherent in the data.

Would love to provide different views on it and go more in depth next, thanks for the suggestion.

Re:Show HN: I mapped HN's favorite books with GPT-4o on Tuesday September 10, 2024 @05:32AM (#41498976)
Hey, thanks for reporting - this is fixed now. I messed up the static build and some browsers freaked out. By law of showing things publicly, I of course only tested in a browser that didn't. Hope you can give it another chance!
Re:Show HN: I mapped HN's favorite books with GPT-4o on Tuesday September 10, 2024 @05:27AM (#41498935)
My apologies for that! First time deploying Svelte Kit to Cloudflare Pages, and I messed up the static build. Should be fixed now, hope you can give it another shot.
Re:Show HN: I mapped HN's favorite books with GPT-4o on Sunday September 08, 2024 @02:07PM (#41481978)
Thanks!

The cluster memberships that come out of the first round are distributions over the different clusters, e.g. a given book is weighted 0.8 for cluster A and 0.2 for cluster B. The Hellinger distance is well-suited to quantify the difference between two distributions like that. Cosine similarity and Euclidean distance worked as well, but Hellinger gave subjectively nicer results.

Very interesting question, I'm not sure! While developing, I noticed that the systems thinking books were spread over different genres, which I found quite pleasing. However, I'm not sure if other books were even more diffuse. I'll have to dig back in and find out :)

Show HN: I mapped HN's favorite books with GPT-4o

https://hnbooks.pieterma.es

Hey HN! I love finding new books to read on here. I wanted to gather the most mentioned books and recreate the serendipity of physical browsing. I scraped 20k comments from HN threads related to reading, extracted the references and opinions using GPT-4o mini, and visualised their embeddings as a map.- OpenAI's embeddings were processed using UMAP and HDBSCAN. A direct 2D projection from the...

( Read More... | 61 comments | 3 points | on HN )

Show HN: A 2D map of the 1000 most popular books on HN

https://hnbooks.pieterma.es

Hey HN! I love finding new books to read on here. I wanted to recreate the serendipity of browsing someone else's bookshelf. I scraped 20k posts from HN threads related to reading, extracted the references using GPT, and visualised their embeddings as a map.- OpenAI's embeddings were processed using UMAP and HDBSCAN. A direct 2D projection from the text embeddings didn't yield visually...

( Read More... | no comments | 3 points | on HN )