Тёмный

LangGraph Deep Dive: Build Better Agents 

James Briggs
Подписаться 67 тыс.
Просмотров 16 тыс.
50% 1

Опубликовано:

 

17 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@ward_jl
@ward_jl Месяц назад
Looking forward to this one. Especially with the new features LangChain has been bringing out in the past weeks. Exciting times to be building AI applications, for sure!
@jamesbriggs
@jamesbriggs Месяц назад
langchain have done well with langgraph here -the langgraph I demoed in the first langgraph tutorial was pretty messy, hard to grasp, etc - this version of langgraph + langchain v2 is much better imo
@LucasLima13
@LucasLima13 21 день назад
Couldn't agree more!
@MrMoonsilver
@MrMoonsilver Месяц назад
Your presentation is so good, I use it to listen to it in the background when I'm coding or doing other tasks. Then, when I watch the tutorial for good I find that I follow much better than if I would watch and follow right away.
@jamesbriggs
@jamesbriggs Месяц назад
that's cool, I never tried that - will try the same sometime next time I'm watching tutorials :)
@tiagoc9754
@tiagoc9754 29 дней назад
Awesome, this is the video I need. I'll watch this carefully. I've tried langgraph, and it felt really complex to manage the tools and workflows. Giving the description to trigger the tool is hard if you have similar steps in your workflow. Making the caller to use the exact response from the tool was also really hard. And thinking of scalability, like adding steps in between in the long term in a project with multiple people, feels it's going to be hard. I tried also adding multi agents by passing a workflow as a node, and again, it was a bit hard to make everything work as expected. I was just following a simple flowchart with a few steps and forks. Even though I was able to make it work, it felt like I was doing everything so wrong. Anyway, I hope your video put some lights on my way to understand this better
@amparocanaveras8938
@amparocanaveras8938 5 дней назад
James you are the best! This repository is very easy to install and works really well. Thanks!
@jamesbriggs
@jamesbriggs 3 дня назад
glad to hear!
@sanjeevgupta8435
@sanjeevgupta8435 2 дня назад
Very well explained, Thank you
@mrchongnoi
@mrchongnoi Месяц назад
I always enjoy your video. I have a better understanding of LangGraph. As with your video, all of the demonstrations I have watched are one sentence or requests to the LLM. Here are two examples of Requests. I'm interested in what the best type of dog is for child. My daughter is five years old. We live in Minnesota, which is quite cold, so we need a dog that is good for cold weather. Please provide me with a few suggestions. I am deeply intrigued by the various reasoning approaches to building my report writer research agent. I have discovered two approaches: Tree of Thought and Chain of Thought. I am eager to gain a good understanding of each. Please provide me with a report that defines each strength and weakness for each. Make a recommendation as to which one would be good for building my research agent.
@awakenwithoutcoffee
@awakenwithoutcoffee Месяц назад
I love LangGraph as well, looking forward solidifying my knowledge. Cheers James. ps . Would you be interested doing video/research on meta-data creation from a hierarchical perspective : Parent children ? I think we could greatly enhance RAG quality if we build a hierarchical structure of meta-data. Problem here is how to create and label this data. From my testing with "GliNER" it doesn't nearly capture what id like and needs fine-tuning (but maybe we could train it on our client specific data..). Cheers!!
@tajpouria
@tajpouria Месяц назад
Simple and Efficient
@ZhenkaS
@ZhenkaS Месяц назад
Have you tried to use this approach to build a team of agents that collaborate to solve a specific task from multiple different specific perspectives?
@tiagoc9754
@tiagoc9754 28 дней назад
27:17 this is soooo helpful
@jamesbriggs
@jamesbriggs 23 дня назад
I'm happy to hear it!
@reknine
@reknine Месяц назад
Really nice job! Really wanna have a walk through on how to stream the final answer as well.
@jamesbriggs
@jamesbriggs 28 дней назад
noted, will try and do something soon!
@deanosaureflex
@deanosaureflex Месяц назад
Very nice content James ! Just discovering langgraph I have a question : in what which is It different from crew AI ?
@law_wu
@law_wu Месяц назад
Great tutorial as usual James!
@Fiddelush
@Fiddelush Месяц назад
Thanks for this video, great as usual. One thing I don't understand is what is breaking the "loop"/further gathering of information. Is it when the "Oracle" thinks it has "plenty of information" as stated in the system prompt? Or when does it stop?
@jamesbriggs
@jamesbriggs Месяц назад
yeah exactly, once the oracle has enough information it will "decide" to use the final answer tool, ending the loop
@sidnath7336
@sidnath7336 Месяц назад
In your opinion, what situations would you stick to Langchain VS Langgraph? Or should we now always use Langgraph?
@jamesbriggs
@jamesbriggs Месяц назад
I always just use langgraph now - maybe if langchain gives you exactly what you need out of the box it might be better, but I really prefer building with langgraph nowadays
@sidnath7336
@sidnath7336 Месяц назад
@@jamesbriggs Do you have a particular scenario where LangChain would give you what you need out of the box compared to LangGraph? It seems as if the LangGraph interface gives us all the power of LangChain but in a more controlled environment (and more).
@jamesbriggs
@jamesbriggs Месяц назад
@sidnath7336 I think I'd always stick with langgraph nowadays
@hunzalamushtaq4885
@hunzalamushtaq4885 Месяц назад
Can you please also make a video about human in the loop in depth. Thank you
@shubhamsalokhe4080
@shubhamsalokhe4080 3 дня назад
I used this approch but in my use case I used two tools for rag search and i want both tools run parellel and output of tools want to combine and pass to Oracle agent to generate final response but I facing issue of its calling always one tool and generating final output anyone can help for this scenario
@sushi2721
@sushi2721 20 дней назад
why does the graph always go to rag_seach first?
@DeerajRManjaray
@DeerajRManjaray Месяц назад
Great Content !!👏👏👏👏
@raminderpalsingh123
@raminderpalsingh123 Месяц назад
Thanks for this James. How do I switch from OPENAI KEY to GROQ KEY? Or even using Ollama?
@jamesbriggs
@jamesbriggs 28 дней назад
working on video with langgraph + ollama, you can see some of the progress in this PR github.com/pinecone-io/examples/pull/374
@LucasLima13
@LucasLima13 21 день назад
I'm currently having troubles to define a SQL Agent as a tool for my LangGraph Agent. Have anyone done or seen something that could help me?
@shubhamsalokhe4080
@shubhamsalokhe4080 Месяц назад
I tried this approach to build agent for my use case with bedrock LLM, instead of Open Ai model i just introduced Bedrock LLM and keep all remaining things same but facing issue as : Error raised by bedrock services : messages : final assistant content can not end up with white trailing space May be this error is due to custom scratchpad can you guide me to resolve this error?
@awakenwithoutcoffee
@awakenwithoutcoffee Месяц назад
btw, what about using the semantic-router with langGraph ?
@jamesbriggs
@jamesbriggs 28 дней назад
great idea, we do that at Aurelio AI for a couple clients - but I'm yet to talk about it on YT, I will
@awakenwithoutcoffee
@awakenwithoutcoffee 28 дней назад
@@jamesbriggs thank you James, another interesting topic is binarification (that a word ? Lol!) embeddings to save costs on embedding storage.
@AI_ML_DL_LLM
@AI_ML_DL_LLM Месяц назад
How is it different than DSPy ?
@attilavass6935
@attilavass6935 Месяц назад
Has anyone tried it with cheaper LLM(s)? With which and how did you like the result?
@jamesbriggs
@jamesbriggs Месяц назад
building something similar with 8b llama 3.1 - so far going well, using ollama tool calling
@jamesbriggs
@jamesbriggs Месяц назад
📌 Code: colab.research.google.com/github/pinecone-io/examples/blob/master/learn/generation/langchain/langgraph/01-gpt-4o-research-agent.ipynb 📖 Article: www.pinecone.io/learn/langgraph-research-agent/
@ax5344
@ax5344 Месяц назад
Thanks a lot for sharing. The topic looks complex but you made it as neat as possible! The combination of video, code and article is really helpful. Video is good in the sense that it is more interactive, but I do need the article to get a more straight-forward sense of the whole idea. Some questions: 1) "input": "tell me something interesting about dogs" became 'interesting facts about dogs' in the output. Is this the result of the step langchain_core.tools? 2) in rag_search_filter, top_k=6; in rag_search, top_k=2. Does this mean return the top_k answers? I asked this because one was doing search within one article, the other was searching in indexes (I assume the index was one article one index?) 3) graph.add_node("oracle", run_oracle) graph.add_node("rag_search_filter", run_tool) graph.add_node("rag_search", run_tool) graph.add_node("fetch_arxiv", run_tool) graph.add_node("web_search", run_tool) graph.add_node("final_answer", run_tool) Will all of them be forced to execute? I see from the result rag_search, web_search, final_answer were invoked. Then how does this graph determines which tools to invoke? Order seems to matter too. The subsequent tools will be affected by the previous tools' results, right? Then how is order decided?
@jamesbriggs
@jamesbriggs Месяц назад
1) the rewrite is made by the "oracle" which is an LLM generating the text that decides which tool is to be used, in this case the LLM decided to use the rag tool with that query, so it would have generated something like "{'tool': 'rag_search', 'query': 'interesting facts about dogs'}" 2) yes, it means return the top_k answers, so `rag_search_filter` returns the 6 most relevant records from the arxiv paper search, whereas `rag_search` returns the 2 most relevant records from the arxiv paper search 3) not all are forced to execute, the oracle and it's generations (described in (1) above) are what decides which next step to take - if it decided to, it could go straight to the final answer and not use any tools
Далее
Local LangGraph Agents with Llama 3.1 + Ollama
47:55
LangGraph 101: it's better than LangChain
32:26
Просмотров 72 тыс.
What Makes A Great Developer
27:12
Просмотров 189 тыс.
What are AI Agents?
12:29
Просмотров 408 тыс.
Make your agents 10x more reliable? Flow engineer 101
17:11
Learn LangGraph - The Easy Way
28:29
Просмотров 28 тыс.
LangGraph Studio: The first agent IDE
8:43
Просмотров 57 тыс.
Semantic Chunking for RAG
29:56
Просмотров 23 тыс.