from Hacker News

Show HN: Hacker News ChatGPT Plugin

by anant on 5/6/23, 3:51 PM with 1 comments

I recently received access to develop and use ChatGPT plugins, and embarked on a project to build a Hacker News integration as a learning exercise. My goal was to enable retrieval of content from HN to answer questions and produce insights in conversations with ChatGPT. I documented my journey in this blog post, which will hopefully be helpful to other plugin developers or anyone looking to learn more about embeddings.

You can try the experience even if you don't have plugin access on ChatGPT through the demo on hn.kix.in - it's a loose approximation but should give you a sense of what's possible. I've been having a lot of fun getting concise answers from the collective wisdom on HN for a wide range of topics!

In many ways this work is similar to the "ShowHN: AskHN" [1] demo shown here a few months ago by the folks at patterns.app. The main differences are in the real-time data integration (you can ask questions about articles submitted as recently as 15 minutes ago), integration with the ChatGPT plugin API, use of GPT-3.5-turbo instead of GPT-3 "davinci", and different approaches taken for embedding generation and semantic search.

The source code for everything is on Github [2], pull requests are most welcome.

[1] https://news.ycombinator.com/item?id=34897773 [2] https://github.com/anantn/hn-chatgpt-plugin

  • by imagine99 on 5/8/23, 1:55 PM

    This is awesome. Helped me find an elusive HN submission from a few weeks ago that I remembered vaguely but was unable to find with HN's own search function (algolia) even after good five minutes of searching. With your plugin, the desired post was in the top 3 results at first try. Thanks for making this.