问HN:你是自己开发代理程序还是使用框架?
我很好奇这里的人是从零开始自己开发代理,还是使用现有的框架。我想了解哪些框架真正有效,以及原因是什么。到目前为止,我一直是手动编写我的代理,这部分是因为我第一次尝试LangChain时,被它的复杂性和臃肿感吓到了。感觉就像在写Java,而实际上我是在写Python。此外,我也希望对我的代理的工作方式有更多的控制,这相比于框架所能提供的(例如上下文管理、在聊天记录过大时压缩历史记录等)有很大不同。话虽如此,我还是很好奇:
1. 你们使用框架吗?如果使用,是哪个框架?
2. 如果你曾使用过某个框架但最终放弃了,是哪个框架,为什么放弃?
3. 自己开发框架的过程如何?在生产环境中运行的体验如何?
查看原文
I am curious if people here roll their own agents from scratch or use frameworks. I am trying to what frameworks are really working, and why. I have so far hand-rolled all of my agents, some of this is because when I first tried LangChain I was intimidated by how complex/bloated it was. It felt like writing Java while I was actually writing Python. There is also a big element of wanting a lot more control on how my agent works compared to what a framework could provide us (around context management, compacting histories if the chat gets too big etc). Having said that I am curious<p>1. Do you use frameworks, if so which one?<p>2. If you used a framework but churned, which one did you churn from and why?<p>3. How has the process of rolling your own framework been? How is the experience of running it in production?