Show HN: Hackslash.org Slashdot-esque AI summaries/tags of HN posts I've been working on this for a little bit and just got the site up off my own dev machine today. This is a site that uses the Gemini API to summarize HN posts and comments using Gemini 1.5 pro. It also tags stories using the Gemini API. Tags can be browsed for all stories that have that tag. All the tags annotated with the number of stories that have that tag are browsable. The web application portion is written in Django, backed by a Postgres database, served by gunicorn and ultimately pushed out through an nginx reverse proxy. I ended up making this because it was something that I wanted, I'm an old Slashdot nerd, always reading the stories and never the comments. I like HN, and the comment threads here, and wondered one day what it would be like to get Gemini to summarize posts in a way similar to Slashdot. I don't have any plans to charge for the site. I will probably only have it pull stories once or twice a day to keep the API costs down. There are five API hits per story, verbose summaries (story and comments), tldr summaries (story and comments), and tags. Right now I've got a python script separate from the Django application that does all the interacting with the HN api (which is very nice by the way), the Gemini API, and the Postgres database. I ended up using the Gemini 1.5 pro model to do the summaries as it seems to have access to the Internet, while the other model I tried do not. Getting the model to consistently output JSON for the tags was a bit tricky, until I asked Gemini itself to fix up the prompt for consistently generating JSON. Now it seems to output valid JSON every time without a JSON prefix. I have noticed that Gemini likes to hallucinate when it comes to the comments, I have it just about ironed out for the story URLs. Mostly when there are few or no comments it seems to summarize like the comments it expects to be there. I'll probably keep tweaking the prompts, and if there's interest demonstrated on Patreon I'll take some polls there of new features to add. I might add more summary types, Gemini seems to do an alright job when I tell it to critique an article but I haven't looked into that too deeply and I have a hunch it might start to hallucinate more. Setting up a personalized page with tag filtering might be an interesting thing to add. Regardless, I hope you find it interesting. I'm personally curious which tags will end up with the most stories after I have it running for about a month or so. Questions and critiques welcome! https://ift.tt/PhIcR52 January 18, 2025 at 11:58PM
Show HN: Hackslash.org Slashdot-esque AI summaries/tags of HN posts https://ift.tt/paDMumq
Related Articles
Show HN: Upload your photo and generate crazy YouTube Faces for your thumbnail https://ift.tt/m5dAQGaShow HN: Upload your photo and generate crazy YouTube Faces for your t… Read More
Show HN: I made an SEO checker to fix frustrating issues in minutes, not hours https://ift.tt/WYCzgRpShow HN: I made an SEO checker to fix frustrating issues in minutes, n… Read More
Show HN: Eternium.css – minimal CSS lib for layout/styling form elements https://ift.tt/Ots63fuShow HN: Eternium.css – minimal CSS lib for layout/styling form elemen… Read More
Show HN: Windows 9X – Windows 98 but all of the programs are AI generated https://ift.tt/nRHvgQrShow HN: Windows 9X – Windows 98 but all of the programs are AI genera… Read More
Show HN: Htmx Offline Mode https://ift.tt/Pr9N13iShow HN: Htmx Offline Mode I wrote a pretty simple extension to HTMX t… Read More
Show HN: Perf Sea – performance engineering for everyone https://ift.tt/2qTpWGHShow HN: Perf Sea – performance engineering for everyone I have found … Read More
Show HN: Mandala – Automatically save, query and version Python computations https://ift.tt/78O5x2fShow HN: Mandala – Automatically save, query and version Python comput… Read More
Show HN: Leaderboard of Top GitHub Repositories Based on Stars https://ift.tt/caKbvGBShow HN: Leaderboard of Top GitHub Repositories Based on Stars I creat… Read More
0 Comments: