News for hackers. Stuff that matters.

Show HN: Conversational search in less than 500 lines of Python

https://search.lepton.run/

Hi there! We built a Bing-chat-like conversational search engine with less than 500 lines of python code (and a similar amount of frontend script). The source code is fully open-source at https://github.com/leptonai/search_with_lepton , and we put up a live demo at https://search.lepton.run/. Let us know what you think!
( 2 comments | 3 points | on HN )
Re:Show HN: Conversational search in less than 500 lines of ... by jiayq84 on Friday January 26, 2024 @12:18PM (#39145067)
Hi folks - Yangqing from Lepton here. The idea came from a coffee chat with a colleague on the question: how much of the RAG quality comes from the old good search engine, vs LLMs? And we figured out that the best way is to build a quick experiment and try it out. What we learned is that search engine results matter a lot, and probably more important than LLMs. We decided to put it up as a site and also open source the full code.

You can try plug in different search engines or even your own elastic interface, write different LLM prompts, pick different LLM models - a lot of ablation studies that could be tried out.

We appreciate your interest and happy Friday!

Re:Show HN: Conversational search in less than 500 lines of ... by jiayq84 on Friday January 26, 2024 @12:19PM (#39145082)
Full open-source code with Apache license here: https://github.com/leptonai/search_with_lepton