Building an Agent-Based Chatbot with Langchain and Next.js in 15 Minutes

  Рет қаралды 4,670

Developers Digest

Developers Digest

10 ай бұрын

Build a custom chatbot without the need to embed all the data + vector database. In this example I use the OpenAI function agent in language to show you how to can build out a chatbot that is based on your own custom functions + data sources.
Links:
github.com/vercel-labs/ai/tre...
smith.langchain.com/projects
platform.openai.com/account/a...
Github Repo: github.com/developersdigest/A...

Пікірлер: 31
@DevelopersDigest
@DevelopersDigest 9 ай бұрын
Building A Chatbot with Langchain and Upstash Redis in Next js kzbin.info/www/bejne/naG7iXysm7h2qtE
@youssefmahboub7981
@youssefmahboub7981 10 ай бұрын
that's amazing, we need more langchain and next js videos ... thank you man
@DevelopersDigest
@DevelopersDigest 10 ай бұрын
Thank you, more to come on this front from my end. Cheers 🥂
@douglasmarzean3838
@douglasmarzean3838 10 ай бұрын
I love anything Nextjs and langchain. These are rare and valued very much. Hopefully will get access to LangSmith soon.
@DevelopersDigest
@DevelopersDigest 10 ай бұрын
I appreciate you saying that Douglas thank you. 🙏
@PrincepsPolycap
@PrincepsPolycap 9 ай бұрын
Thanks for sharing Next.js Lanchain tutorials!
@DevelopersDigest
@DevelopersDigest 9 ай бұрын
You’re welcome! Thanks for watching! 😀
@stonedizzleful
@stonedizzleful 10 ай бұрын
Another fantastic video. Thank you!
@DevelopersDigest
@DevelopersDigest 10 ай бұрын
Thank you Liam
@justinM3610
@justinM3610 7 ай бұрын
Thank you so much for this video! Do you have a video of connecting this to the frontend?
@DevelopersDigest
@DevelopersDigest 7 ай бұрын
If you are looking for a more involved and similar example with a front check out my Anthropic Claude clone in next.js
@Frankazolr
@Frankazolr 6 ай бұрын
Have you found any way to achieve the streaming of the Agent response to the Frond end in Node?
@azzeddine1
@azzeddine1 10 ай бұрын
We want a clear explanation of how to create a chatbot on a WordPress website from scratch
@DevelopersDigest
@DevelopersDigest 9 ай бұрын
Eventually I am going to try and build something out for PHP and Wordpress developers!
@azzeddine1
@azzeddine1 9 ай бұрын
@@DevelopersDigest I hope the explanation is clear and from scratch, waiting 💙
@oz4549
@oz4549 8 ай бұрын
I'm wondering how the dynamic structure tool work under the hood. it seems like it can achieve function calling from openai and one can essentially extract structured output from it. I have tried it in one project where the output of the first tool is received in the dynamic tool and I almost always get the correct structure. I know the agent is openai-functions but if I change it to ReAct will that mean we don't actually get this structured output mapped correctly?
@DevelopersDigest
@DevelopersDigest 8 ай бұрын
Thank you for a great question. I have not tried this yet, however, it looks like if you are looking to use a react agent that requires arguments more than a single string, the compatibility may be limited right now. You might find the link below 👇 helpful, I was just reading through this. I will add to my list of videos look to create chat bot with reAct and structured tools in an upcoming video. I would love to explore this idea more. Cheers! 🥂 blog.langchain.dev/structured-tools/
@oz4549
@oz4549 8 ай бұрын
​​@@DevelopersDigestThanks for taking the time to reply and for the reference link. I'm not actually intended to use it with a ReAct agent. I was trying to understand how this dynamic structure tool can almost always guarantee the exact input of the function as defined by the zod schema because that's exactly what fucntion calling is able to do using vanilla openai sdk. So i was wondering if they implement this behaviour under the hood. I tried the output parser at some point but it was not as reliable as the vanilla openai function calling which is what I end up using most of the time if I want structured output for the front-end.
@joshbane1
@joshbane1 8 ай бұрын
Is this possible with open source models?
@DevelopersDigest
@DevelopersDigest 8 ай бұрын
You can use other agent types in langchain with open source models to accomplish something similar. I have seen only one implementation of open source of the OpenAI function calling api. I hope this will be more prevalent and be easy to have a function request wrapper for LLMs APIs that can reliably provided valid schema to arguments. I have found OpenAI function calling to be the most robust but open source does seem to be moving fast and I wouldn’t be surprised in the coming weeks or months to see more crop up
@asepmulyana9085
@asepmulyana9085 10 ай бұрын
Hi, thanks for the video. I can't register new account on langsmith.
@DevelopersDigest
@DevelopersDigest 10 ай бұрын
Langsmith is still in beta, you will have to request access! Cheers 🥂
@stefanomartell8413
@stefanomartell8413 10 ай бұрын
Can you use your own document as a source with this method? Say a .txt, .pdf etc
@DevelopersDigest
@DevelopersDigest 10 ай бұрын
This is not a replacement for creating embedding and creating vectors, but it can be complimentary. I will make another video where I do a mixed example and dive into how it can compliment one another. If interested, stay tuned! 🙂
@stonedizzleful
@stonedizzleful 10 ай бұрын
@@DevelopersDigest Yes I'd be super keen to see this. Supabase pgvector if possible 🙂
@altered.thought
@altered.thought 10 ай бұрын
Hi there, I tried reaching you at your Gmail account from your website, but the email bounced back. Could you please let me know your preferred channel for chatting? Thank you! Best regards,
@DevelopersDigest
@DevelopersDigest 10 ай бұрын
That one is active, there is also one under details here which is an alternative. www.youtube.com/@DevelopersDigest/about Cheers
@hiranga
@hiranga 10 ай бұрын
Is there a duckduckgo tool?
@DevelopersDigest
@DevelopersDigest 10 ай бұрын
You should be able to with the serp tool js.langchain.com/docs/api/tools/classes/SerpAPI serpapi.com/duckduckgo-search-api 🥂 Cheers!
He tried to save his parking spot, instant karma
00:28
Zach King
Рет қаралды 23 МЛН
Китайка и Пчелка 10 серия😂😆
00:19
KITAYKA
Рет қаралды 1,9 МЛН
Prompt Template in LangChain JS
39:40
Geeky Shows
Рет қаралды 1,1 М.
Next.js Server Actions...  5 awesome things you can do
7:51
Beyond Fireship
Рет қаралды 251 М.
Vercel AI SDK - Create Chatbots easily - with OpenAI & Langchain
11:21
Coding Crashcourses
Рет қаралды 5 М.
I wish every AI Engineer could watch this.
33:49
1littlecoder
Рет қаралды 45 М.
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
pixegami
Рет қаралды 105 М.
Building Custom Tools and Agents with LangChain (gpt-3.5-turbo)
16:48
ЭРИНИ СУВГА УЛОҚТИРДИ 😨
0:15
Hasan Shorts
Рет қаралды 7 МЛН
Try this 🤣  #funny #trending
0:14
Dung ABC
Рет қаралды 14 МЛН
PINK STEERING STEERING CAR
0:31
Levsob
Рет қаралды 18 МЛН
Yellov Diet 💛
0:41
Sushi Monsters
Рет қаралды 2,7 МЛН