Readit News logoReadit News
hwchase17 commented on Deep Agents   blog.langchain.com/deep-a... · Posted by u/saikatsg
hwchase17 · a month ago
Author here!

Main takeaways (which I'd love feedback on) are:

There are series of agents recently (claude code, manus, deep research) which execute tasks over longer time horizons particular well

At the core of it, it's just an LLM running in a loop calling tools... but when you try to do this naively (or at least, when I try to do it) the LLM struggles with doing long/complex tasks

So how do these other agents accomplish it?

These agents all do similar things, namely:

1. They use a planning tool

2. They use sub agents

3. They use a file system like thing to offload context

4. They have a detailed system prompt (prompting isn't dead!)

I don't think any of these things individually is novel... but I also think that they are not super common place to do when building agents. And the combination of them is (I think) an interesting insight!

Would love any feedback :)

hwchase17 commented on How to think about agent frameworks   blog.langchain.dev/how-to... · Posted by u/staranjeet
dhorthy · 5 months ago
this is probably good advice, but seems a little off to use "customer" in an article that feels like its trying to appeal to everyone, not just customers of langchain

> If you do use a framework, ensure you understand the underlying code. Incorrect assumptions about what's under the hood are a common source of customer error.

hwchase17 · 5 months ago
that was a quote from anthropic's blog (not us saying it)... our Ghost theme does not make it super apparent what is a quote :/
hwchase17 commented on     · Posted by u/amrrs
hwchase17 · 6 months ago
lol taken completely out of context

I was actually arguing *for* MCP in this blog

But I don't think its good for all use cases! hence the quote

hwchase17 commented on Show HN: Flow – A dynamic task engine for building AI agents   github.com/lmnr-ai/flow... · Posted by u/skull8888888
sprobertson · 9 months ago
I agree complex conditional LangGraph setups get pretty tedious after a certain point - though you claim to not use graphs here, but isn't that essentially what returning the "next task" does? The graph isn't explicitly defined but it still exists implicitly if you trace through all the tasks and next tasks.

Would be interesting to see a complex agent implementation in both Flow and regular LangGraph to compare maintainability.

hwchase17 · 9 months ago
we're working on a way to make these conditional flows less tedious :) some good devX improvements coming soon!
hwchase17 commented on LangGraph Cloud   blog.langchain.dev/langgr... · Posted by u/gfortaine
hwchase17 · a year ago
Excited to launch this! Happy to answer any questions HN community might have
hwchase17 commented on Why we no longer use LangChain for building our AI agents   octomind.dev/blog/why-we-... · Posted by u/ma_za
fswd · a year ago
The graph code, when all done and said, is identical for all scenarios.
hwchase17 · a year ago
what did it look like though? I'm really keen to hear what the common patterns you saw emerging were
hwchase17 commented on Why we no longer use LangChain for building our AI agents   octomind.dev/blog/why-we-... · Posted by u/ma_za
chatmasta · a year ago
My advice is to focus less on the “chaining” aspect and more on the “provider agnostic” part. That’s the real reason people use something other than the native SDK of an LLM provider - they want to be able to swap out LLMs. That’s a well-defined problem that you can solve with a straight forward library. There’s still a lot of hidden work because you need to nail the “least common denominator” of the interfaces while retaining specialized behavior of each provider. But it’s not a leaky abstraction.

The “chaining” part is a huge problem space where the proper solution looks different in every context. It’s all the problems of templating engines, ETL scripts and workflow orchestration. (Actually I’ve had a pet idea for a while, of implementing a custom react renderer for “JSX for LLMs”). Stay away from that.

My other advice would be to build a lot of these small libraries… take advantage of your resources to iterate quickly on different ideas and see which sticks. Then go deep on those. What you’re doing now is doubling down on your first success, even though it might not be the best solution to the problem (or that it might be a solution looking for a problem).

hwchase17 · a year ago
> My advice is to focus less on the “chaining” aspect and more on the “provider agnostic” part

a lot of our effort recently has been going into standardizing model wrappers, including for tool calling, images etc. this will continue to be a huge focus

> My other advice would be to build a lot of these small libraries… take advantage of your resources to iterate quickly on different ideas and see which sticks. Then go deep on those. What you’re doing now is doubling down on your first success, even though it might not be the best solution to the problem (or that it might be a solution looking for a problem).

I would actually argue we have done this (to some extent). we've invested a lot in LangSmith (about half our team), making it usable with or without langchain. Likewise, we're investing more and more in langgraph, also usable with or without langchain (that is in the orchestration space, which youre separately not bullish on, but for us that was a separate bet than LangChain orchestration)

hwchase17 commented on Why we no longer use LangChain for building our AI agents   octomind.dev/blog/why-we-... · Posted by u/ma_za
causal · a year ago
Glad to hear that- sounds like I should give LangGraph a try after all
hwchase17 · a year ago
would love any feedback if you do!

u/hwchase17

KarmaCake day73October 30, 2020View Original