3 ms·
I created a website that does the following: - pick HN items with more than 400 votes - gather their titles in a list - ask the AI to filter out the ones tha
by frozenlettuce 3y ago
I created a website that does the following:
- pick HN items with more than 400 votes
- gather their titles in a list
- ask the AI to filter out the ones that are not tech-related (bay-area topics, politics)
- scrape selected articles
- write summaries
- publish static website
other sources are reddit subreddits and rss feeds (official languages' blogs and github's releases page).
The AI is quite gullible. That can be avoided by giving it more context and having a review step where you make sure that you are enforcing your editorial rules.
Another thing that I've been wondering is having a cheaper model (gpt-turbo-3.5) write articles and then use a more sophisticated to review them (gpt4)
- lostlogin 3y ago> I created a website I’d really like to see this - any chance we could?
- frozenlettuce 3y agoIt's https://dev-radar.com/ https://dev-radar.com/, the repository is https://github.com/lfarroco/news-radar https://github.com/lfarroco/news-radar
- CrazyStat 3y agoVery difficult to read on mobile.
- frozenlettuce 3y agothat's true! added some responsive classes to the columns
- CrazyStat 3y agoThanks, looks much better now!
- lostlogin 3y agoThis is really neat and way easier to read. I’d like the inverse too (the rejected links! Politics, history etc). They are a great source of weekend reading. But you’ve included the repo, so now that’s on me.
- frozenlettuce 3y agoIt should be possible to adjust the prompt asking the ai to include a reason for inclusion/rejection too.
- frozenlettuce 3y agoThis weekend I'm going to make it easier to run customized instances. I wasn't expecting a good reception from folks lol
- frozenlettuce 3y agosome additional info: this is the prompt that filters "candidates" to be scraped: https://github.com/lfarroco/news-radar/blob/main/src/candidates.ts https://github.com/lfarroco/news-radar/blob/main/src/candida... This is the prompt that generates the articles: https://github.com/lfarroco/news-radar/blob/main/src/writer.ts https://github.com/lfarroco/news-radar/blob/main/src/writer....
- thevinmeister 3y agoI'm curious, can you ballpark how many tokens you use for the round trip of link ingestion and article creation? I haven't really tinkered with LLMs, so I'm trying to wrap my head around the cost of projects like this.
- frozenlettuce 3y agoI run the script every 6hrs. When a candidate list is built, it has around 15 items + the prompt. That usually goes around 1k tokens. When generating an article, the prompt has 1k tokens and the response has around 1k tokens (I ask for text with up to 250 words). If the source article is long I just truncate it - it should be enough to create a summary presenting the topic. It is possible to batch article creation, submitting the prompt once alongside 2-articles, but I don't think that it would be worth the hassle. I'm getting billed 1c for every 12-15 articles generated (using gpt3.5turbo
- vogon_laureate 3y agoI particularly appreciate that you have a disclaimer at the top stating that the article was AI generated. I wish more sites that used AI did that. Nice execution too.