3 ms·
Show HN: Conversational search in less than 500 lines of Python
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 https://github.com/leptonai/search_with_lepton , and we put up a live demo at https://search.lepton.run/ https://search.lepton.run/. Let us know what you think!
- jiayq84 3y agoHi 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!
- jiayq84 3y agoFull open-source code with Apache license here: https://github.com/leptonai/search_with_lepton https://github.com/leptonai/search_with_lepton