Build agents, not pipelines

There are only two ways to use LLMs in a computer program: as part of a pipeline, or as an agent. In other words, either you express the control flow of the program in code, or you give a LLM tools and allow it to manage the control flow itself 1 . Here’s how you might structure a trivial “summarize a bunch of information and email it to me” program as a pipeline: context = gather_context ( various , data , sources ) llm_response = llm_summarize ( context ) summary = parse ( llm_response ) email_me ( summar

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论