Growing India News, world news, nation news, our news, people's news, grow news, entertainment, fashion, movies, tech, automobile and many more..
Sunday, January 19, 2025
Show HN: Hackslash.org Slashdot-esque AI summaries/tags of HN posts https://ift.tt/EX7O6hM
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/rxQAcN7 January 18, 2025 at 11:58PM
Subscribe to:
Post Comments (Atom)
Show HN: Pocket2Linkding – Migrate from Mozilla Pocket to Linkding https://ift.tt/IwYJfju
Show HN: Pocket2Linkding – Migrate from Mozilla Pocket to Linkding With the Mozilla Pocket shutdown coming up in about two weeks, I thought ...
-
Show HN: An AI logo generator that can also generate SVG logos Hey everyone, I've spent the past 2 weeks building an AI logo generator, ...
-
Show HN: Snap Scope – Visualize Lens Focal Length Distribution from EXIF Data https://ift.tt/yrqHZtDShow HN: Snap Scope – Visualize Lens Focal Length Distribution from EXIF Data Hey HN, I built this tool because I wanted to understand which...
-
Show HN: Federated IndieAuth Server implemented as a notebook https://ift.tt/32IC633 April 27, 2021 at 04:37PM
No comments:
Post a Comment