{"by":"pmaze","descendants":61,"id":41473518,"kids":[41491096,41495629,41490267,41490439,41474049,41489911,41490442,41497863,41489900,41491013,41489974,41489792,41490297,41496638,41475502,41494513,41491484,41492856,41493863,41490648,41514873,41491355,41491140,41497703,41494958,41494023,41491827,41492374,41505872,41490385,41490904,41496540,41517732,41497632,41490053,41493845,41489958,41494324,41473612],"score":285,"text":"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.<p>- OpenAI&#x27;s embeddings were processed using UMAP and HDBSCAN. A direct 2D projection from the text embeddings didn&#x27;t yield visually interesting results. Instead, HDBSCAN is first applied on a high-dimensional projection. Those clusters tend to correspond to different genres. The genre memberships are then embedded using a second round of UMAP (using Hellinger distance) which results in pleasingly dense structures.<p>- The books&#x27; descriptions are based on extractions from the comments and GPT&#x27;s general knowledge. Quality levels vary, and it leads to some oddly specific points, but I haven&#x27;t found any yet that are straight up wrong.<p>- There are multiple books with the same title. Currently, only the most popular one of those makes it onto the map.<p>- It&#x27;s surprisingly hard to get high quality book cover images. I tried Google Books and a bunch of open APIs, but they all had their issues. In the end, I got the covers from GoodReads through a hacked together process that combines their autocomplete search with GPT for data linkage. Does anyone know of a reliable source?","time":1725711811,"title":"Show HN: I mapped HN's favorite books with GPT-4o","type":"story","url":"https://hnbooks.pieterma.es"}