Perplexity clone in 21 lines of code Posted by galgia on Thursday January 30, 2025 @10:09AM from the github.com dept. https://github.com/Pravko-Solutions/FlashLearn/blob/main/examples/perplexity_clone.py ( 1 comment | on HN )
What it does:
- Input user query - Generate 1 to n google queries to find the answer - Use this queries to query Google - Generate response with links to sources
You can retrieve from any source line this and improve the quality of answers for multi-hop questions from your users.
Have fun!