精选理由
LangChain作者分享:跑贵Agent前先用便宜分类器筛一道,省token,简单任务不用烧钱。
LangChain作者Harrison Chase提出一个省token的技巧:在调用昂贵Agent前,先让轻量分类器判断输入是否值得运行。只有分类器判定满足条件时,才启动完整Agent流程。这能避免把简单任务也丢给重型模型,烧掉大量token。该建议是对SrinathJ“不是人人都能烧万亿token”的回应。
原文 · Harrison Chase
Can use a lightweight classifier step to first decide if even worth running Then more expensive age...
Can use a lightweight classifier step to first decide if even worth running Then more expensive agent if that criteria is met SrinathJ @sri9s I’m afraid not everyone can afford to burn trillions of tokens 🔗 View Quoted Tweet 💬 3 🔄 0 ❤️ 2 👀 444 📊 2 ⚡