DEV Community

Cover image for Build a clone of Perplexity with LangGraph, CopilotKit, Tavily & Next.js 🪄

Build a clone of Perplexity with LangGraph, CopilotKit, Tavily & Next.js 🪄

David Asaolu on January 08, 2025

AI-powered applications are evolving beyond just autonomous agents performing tasks. A new approach involving Human-in-the-Loop allows users to pro...
Collapse
 
nevodavid profile image
Nevo David •

Endless possibilities with CopilotKit 🚀

Collapse
 
nathan_tarbert profile image
Nathan Tarbert •

Yes, they are!

Collapse
 
arindam_1729 profile image
Arindam Majumder •

Great Article!

Collapse
 
arshadayvid profile image
David Asaolu •

Thank you, Arindam!
Glad, you enjoyed it🔥

Collapse
 
eren_yeager_c1759662d1eae profile image
eren yeager •

gfvbfg

Collapse
 
eren_yeager_c1759662d1eae profile image
eren yeager •

fgbfgb

Thread Thread
 
eren_yeager_c1759662d1eae profile image
eren yeager •

fgbfgb

Thread Thread
 
eren_yeager_c1759662d1eae profile image
eren yeager •

fgfgbfg

Collapse
 
jmarca profile image
James Marca •

Thanks for the write up. I’ve been looking for a new hobby project and this has possibilities.

Collapse
 
arshadayvid profile image
David Asaolu •

Glad you found it useful, James! 😊

Collapse
 
nathan_tarbert profile image
Nathan Tarbert •

Hey James, I would love to get your feedback after you finish this project.

Collapse
 
jmarca profile image
James Marca •

Okay I’ll do so.

Thread Thread
 
nathan_tarbert profile image
Nathan Tarbert •

Ok great, looking forward to it!

Collapse
 
anmolbaranwal profile image
Anmol Baranwal •

Nice, David! 🔥 There's a very popular repo with 18k stars called Perplexica, which is also a clone of Perplexity.

I will give this a read later :)

Collapse
 
arshadayvid profile image
David Asaolu •

Thank you, Anmol! 🙂

Collapse
 
james0123 profile image
James •

This is really cool!

Collapse
 
arshadayvid profile image
David Asaolu •

Glad, you enjoyed it, James! 🙌
I hope it helps you in your projects! 🔥🎉

Collapse
 
tanmoys95268896 profile image
Tanmoy Sinha •

I'll try to build something like this.Thanks for this

Collapse
 
nathan_tarbert profile image
Nathan Tarbert •

Tanmoy, I'd love to hear your feedback.
If you need help along the way you can reach out via our Discord

Collapse
 
tanmoys95268896 profile image
Tanmoy Sinha •

Sure.

Collapse
 
tahara352 profile image
Tahara Kazuki •

Great Article!

Collapse
 
arshadayvid profile image
David Asaolu •

Thank you, Tahara 😎

Collapse
 
hemath923604 profile image
Hemath •

Awesome!

Collapse
 
arshadayvid profile image
David Asaolu •

Thank you, Hernath! 🙌
I hope it helps you in your projects!🔥

Collapse
 
david-723 profile image
David •

This seems more technical than just ChatGPT. How is it retrieving the internet data?

Collapse
 
nathan_tarbert profile image
Nathan Tarbert • • Edited

Hi David, yes, it's more technical than just a plain ChatGPT output because it uses Tavily's search API, which has fewer hallucinations and retrieves the most relevant information based on your search.

Collapse
 
thomas_romanowski_9442e51 profile image
techybolek • • Edited

I'm getting an error when running poetry install:

CopilotKit/examples/coagents-starter/agent$ poetry install
Installing dependencies from lock file

pyproject.toml changed significantly since poetry.lock was last generated. Run `poetry lock` to fix the lock file.

Enter fullscreen mode Exit fullscreen mode

I was able to get around it using poetry.lock but then I got an error:

Installing the current project: greeter (0.0.1)
Warning: The current project could not be installed: No file/folder found for package greeter
If you do not want to install the current project use --no-root.
If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file.
If you did intend to install the current project, you may need to set
packagesin your pyproject.toml file.

Collapse
 
nathan_tarbert profile image
Nathan Tarbert • • Edited

Hi, @thomas_romanowski_9442e51, my apologies, I'm just seeing this.
I'm getting the same error.
Let me look into this and get back to you.

Collapse
 
nathan_tarbert profile image
Nathan Tarbert •

@thomas_romanowski_9442e51, we have deployed a fix for this issue.

Would you mind trying again and let me know if it works?

Please feel free to ask any questions and reach out personally on Twitter if you'd like @nathan_tarbert

Collapse
 
prankurpandeyy profile image
PRANKUR PANDEY •

Few doubts is it important to clone the starter repo as I am a javascript guy and want to build my own agents .

I don't have Langgraph studio and it's only available for mac not available for linux .

I am building a very simple tool but stuck on building and connecting agents to my nextjs app .

Collapse
 
bch_dng_38a310d2d21714 profile image
Bích Dương •

`


egrewgre{% embed eger %}

`