from Hacker News

Show HN: I made a search engine for Hacker News

by ofermend on 7/2/24, 8:11 PM with 83 comments

I love HN but always felt the search with algolia is okay but does have some limitations. Since I work at Vectara I decided to try and create a better search for HN. It's based on data from roughly the last 6 months of HN stories and comments.

Would love to hear feedback and how useful this is relative to the existing search.

  • by pedalpete on 7/2/24, 11:18 PM

    Nice work. I wonder if there may be a better application for the Vectara capabilities than search?

    Algolia has already done the search thing, can the Vectara search be 10x better?

    What I do find missing from HN is the ability for me to see things that may be of interest to me, but that I may have missed. I like how I get everything in the main feed which is pure popularity, but I don't have the time to go through all posts, and definitely likely miss things I would probably have been interested in.

    Though this can be done with collaborative filtering, or other non-AI methods, might this be a decent use case for your AI?

  • by ptsd_dalmatian on 7/3/24, 12:47 PM

    Am I the only one that hasn't noticed the search input in the footer? :O
  • by n4r9 on 7/3/24, 10:42 AM

    Like some other comments here I find HN search useful and powerful and am a little unsure what the added value is here. Possibly/probably it's for people that search in a different way to me.

    One of the most frequent searches I do is to look for a specific comment that I know a user made recently. For example, I might want to look for my own comment here: https://news.ycombinator.com/item?id=40801389 (sorry, this is a slightly political one but I just picked it randomly for test purposes).

    Searching Vectara for "n4r9 NHS" produces no results: https://hackernews.demo.vectara.com/?query=n4r9+NHS&filter=

    HN's own search however produces the goods in the top result: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...

    [ EDIT except for this very post :p ]

    Maybe 6 days ago is outside the dataset that this is based on?

    Some other thoughts/suggestions:

    - Ability to click through to the comment itself? At the moment it looks like the link goes just to the main comments page and then I have to find the relevant comment on the page.

    - Filter comments vs posts?

    - Order by datetime?

    - Filter within a date range?

  • by marcodiego on 7/3/24, 12:50 AM

    Please, add also the possibility to search in links posted/commented in hacker news. I bet it would be competitive against google for the hn crowd.
  • by KomoD on 7/3/24, 4:47 PM

    OP mentions Algolia having limitations but this seems more limited?

    It doesn't seem like it has any filtering or sorting like the Algolia one has, like comments/stories by a specific user, during certain dates, sorting by upvotes/recency, searching by just title/content/comments.

    Say I wanted to search for comments by the OP, ofermend, it doesn't seem like I can...

    Entering just their name returns results that aren't made by them nor mention their username, I tried other queries too without any luck.

  • by jiehong on 7/3/24, 1:36 PM

    Congratulations!

    Although, something I value a lot from algolia is the very fast live search as you type[0].

    Vectara seems to be smarter, but much slower.

    My needs are satisfied with algolia 99% of the time as a technical user.

    [0]: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

  • by ofermend on 7/9/24, 3:52 PM

    Thank you everyone for the feedback. For those interested in asking questions about articles, here's another nice demo (still in beta): an Agentic RAG chatbot demo (hosted on Huggingface, using streamlit for UI):

    https://huggingface.co/spaces/vectara/hacker-news-chat

    Feel free to ask it some things and let me know how it works.

  • by rgaidot on 7/6/24, 4:47 AM

    That's interesting to hear you've developed a new search interface for Hacker News. I can relate, as I've worked on another search interface as a personal project myself (validated in "Cool Apps" at algolia), though mine has no ambitions beyond personal exploration. Knowing there are various other options already in existence, I'm genuinely curious to see how your approach distinguishes itself. Finally site hn.algolia.com is no longer maintained. https://hnpaper-labs.gaidot.net
  • by omneity on 7/3/24, 10:57 AM

    I searched for "Supabase" and none of top the results in your demo contained an actual post about supabase. Following the example queries I then tried "What is supabase?" and the results were equally irrelevant.

    My personal opinion is that I'll keep using the HN search for the foreseeable time.

  • by metadat on 7/2/24, 10:05 PM

    Cool project, but I'm struggling to understand what is better about the Vectara solution?

    Compared to Algolia.hn, this gives 0 filter controls (time window, stories vs. comments, `author:metadat', sort order, and so on), and no ability to search for exact matches. It failed to turn up anything interesting or even relevant for the 4 or 5 queries I ran.

    You've still made it further than I in the HN search engine adventures, which is commendable.

  • by owenpalmer on 7/2/24, 10:38 PM

    Cool, I like it!

    I found a bug. Under the "When will GPT-5 be released?" search results, there are double duplicate results. On one of the duplicates, the "username (date)" says "undefined (undefined)"

  • by d4rkp4ttern on 7/3/24, 11:22 AM

    I really like this HackerSearch app:

    https://hackersearch.net/

  • by douglaskayama on 7/3/24, 8:43 PM

    I tried searching for lootitooti, Vectara found nothing, Algolia found two results, one in a post and one in a comment in another post.

    PS: no, lootitooti is not my project. I decided to finally watch Game of Thrones with my wife and I remembered that site when I was watching the opening. I remembered seeing it here on HN, searched and found it.

  • by smusamashah on 7/2/24, 11:27 PM

    It doesn't always work correctly. For example "Text to diagram tool" is returning very few results and some of the results are not even correct. While this topic has been discussed a lot here. I was mainly looking for the list of tools I keep sharing whenever this topic comes up, or when I share a related tool in a thread.
  • by uwemaurer on 7/3/24, 4:08 PM

    Great work!

    I am currently playing with the Algolia hackernews search API myself and experimenting with spaCy Named Entity Recognition and llama3 to come up with some interesting data.

    Work in progress version here: https://news.facts.dev/topic

  • by ravishing0223 on 7/3/24, 8:43 AM

  • by kuzej on 7/4/24, 6:56 AM

    Great project! But I'm curious about how the frontend was implemented. What's the tech stack? For example, is it Next.js + Tailwind CSS?
  • by okhuman on 7/3/24, 2:09 PM

    I'm thrilled to see Vectara here – they have one of the top Product Managers I've ever had the chance to work with and be mentored by.
  • by call-me-al on 7/3/24, 7:31 AM

    really like this one from [Show HN: Hacker Search – A semantic search engine for Hacker News](https://news.ycombinator.com/item?id=40238509). The URL is: https://hackersearch.net/ask
  • by bschwarz on 7/3/24, 11:20 AM

    Struggled to find a specific comment earlier today via Algolia, found it as the second result on Vectara.
  • by bckr on 7/3/24, 12:02 PM

    Next someone should make a hackernews meta search engine :)
  • by sharpshadow on 7/3/24, 11:34 AM

    Like Algolia it doesn’t work without JS.
  • by yoouareperfect on 7/3/24, 12:37 AM

    Amazing! Congrats on launching!
  • by ceving on 7/3/24, 5:41 AM

    Searching for "iptables" returns first:

    > Arm says it wants all Snapdragon X Elite laptops destroyed

    Not so useful.

  • by jpl56 on 7/3/24, 2:04 PM

    Great! My first thought was "funniest XKCD". Loved the Self Driving one [0]. Thanks!

    [0]: https://xkcd.com/1897/

  • by Jiahang on 7/3/24, 9:39 AM

    i use Google :{}+ news.ycombinator.com
  • by dcoder2311 on 7/3/24, 5:49 AM

    Cool work!
  • by yanko on 7/3/24, 9:27 AM

    How to full text search on hn given user favorites only... If no such such option I feel disappointed
  • by wjb3 on 7/2/24, 8:44 PM

    Excellent!