LangChain创始人:构建Agent的三大核心层与持续学习闭环
"it's underrated how hard it is to build agents!"
Agent 开发者必读,Harrison Chase 拆解了上下文、框架与模型的优化优先级及持续学习闭环,直接指导工程落地。
"it's underrated how hard it is to build agents!"
"人们低估了构建 Agent 的难度!"
great convo w/ @hwchase17 and @HarryStebbings on @twentyminutevc
与 @hwchase17 和 @HarryStebbings 在 @twentyminutevc 上的精彩对话
an agent = model + context + harness, and you can improve an agent by tweaking any of the three. a few takeaways:
Agent = 模型 + 上下文 + 框架(Harness),你可以通过调整这三者中的任何一项来改进 Agent。几点心得:
1. the highest roi thing you can do is start by optimizing context (then the harness, then the weights); this is where domain knowledge lives and that's incredibly valuable
1. 投资回报率最高的事情是从优化上下文开始(然后是框架,最后是权重);领域知识就存在于此处,这具有极高的价值。
2. the story of continual learning is: run an agent, collect traces, aggregate learnings, fix something, measure the fix, loop! the fix can land in any of the three layers. those fixes all look different but the cycle is the same.
2. 持续学习的历程是:运行 Agent、收集轨迹、汇总学习成果、修复问题、衡量修复效果、循环往复!修复措施可以应用于这三个层级中的任何一个。尽管这些修复措施各不相同,但循环过程是一致的。
3. memory is still massively unsolved, but also massively important. the hardest part is distilling learnings from traces which is incredibly domain specific.
3. 记忆机制仍未得到大规模解决,但也极其重要。最困难的部分是从轨迹中提炼学习成果,而这具有极强的领域特异性。
4. when you build agents, you're probably worried about a few things: accuracy, cost, latency, and security. we've seen these themes confirmed year after year in our dev surveys
4. 当你构建 Agent 时,你可能担心以下几件事:准确性、成本、延迟和安全性。在我们的开发者调查中,我们年复一年地证实了这些主题。
5. when we think about reducing cost, the pipeline looks like adding visibility into spend, putting controls in place, and only then pushing on agent optimizations. this is how we reduced our coding agent spend @LangChain
5. 当我们考虑降低成本时,流程看起来像是:增加支出可见性、建立控制措施,然后才推动 Agent 优化。这就是我们在 LangChain 降低编码 Agent 支出的方法。
6. model routing, which is great for cost controls, is most effective in the harness (where the context needed for a routing decision lives)
6. 模型路由对于成本控制非常有效,它在框架层(Routing 决策所需的上下文所在之处)最为有效。
7. open models are used for more narrow tasks right now (small parts of the agent loop OR for very specific domains w/ post-training), but as they improve they'll power more core agent loops
7. 目前开源模型用于更狭窄的任务(Agent 循环的小部分,或经过后训练用于非常特定的领域),但随着它们的进步,它们将支持更多的核心 Agent 循环。
8. we're looking at a future with both horizontal agents and vertical agents. horizontal agents will use the vertical agents, and infra needs to change to support this load (agents can do background work at a rate that humans cannot).
8. 我们正在展望一个拥有水平型 Agent 和垂直型 Agent 的未来。水平型 Agent 将使用垂直型 Agent,基础设施需要改变以支持这种负载(Agent 能够以人类无法做到的速度进行后台工作)。
https://www.youtube.com/watch?v=1jDCPEHwQfI
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力