Advanced Technologies: Beyond prompting - Tool use and agents(optional)

How LLMs are starting to really use tools, and then also discuss a cutting-edge topic of agents, which is where we'll let LLMs try to decide for themselves what action they want to take next.

Tool use for food order taking--chatbot

  • LLM can't just say...., because it needs to take some action to actually send xxx to you
  • An LLM might output this response, order xxxx for the user, and then also say the user message is to say, " Okay, it's on its way."
    • An LLM that's been fine-tuned to output text like this will be able to generate an order, which in this case would trigger a software application ( passes a request)
    • What is shown to the user is not the full LLM output, but rather set to the user as the response
    • A better user interface would be to pop up a verification dialogue;
    • And clearly, given that LLMs' outputs are not completely reliable for any safety-critical or mission-critical action, it would be a good idea to let a user confirm that that's the right action before letting the LLM trigger some potentially costly mistake by itself

Tools for reasoning

  • LLMs are not great at precise math
    • It turns out LLMs, having learned to predict the next words or maybe even instruction tunes, are not great at precise math
    • So, rather than having the LLM output the answer directly, if the LLM were to output this, after compounding and so on, you would have a calculator
    • This can be interpreted as a command to call an external calculator program to explicitly compute the right answer, and plug the result back into the text to give the user the correct data figure
    • So by giving LLMs the ability to call tools in their output, we can significantly extend the reasoning or the action-taking capabilities of LLMs
    • Make sure that tools aren't triggered in a way that causes harm or irreversible damage

Agents

  • Use LLM to choose and carry out complex sequences of actions

    • Going beyond tools into a more experimental area, which goes beyond triggering a tool to carry out a single action. But it's exploring whether LLMs can choose and carry out complex sequences of actions
  • Cutting-edge area of AI research

    • It's not yet mature enough to count on for the most important applications
    • An agent uses an LLM as a reasoning engine to figure out what are the steps it needs to carry out to do the task.
    • And this reasoning engine, the LLM, might decide it needs to search for the list of the xxx,
    • Then visit the website for each xxx, and finally, for each xxx, write a summary based on the homepage content.
    1. And then perhaps by making a sequence of calls to this reasoning engine, it may figure out how to search the xxx, it has to trigger a tool to call a web search engine on the query xxx
    2. It may visit the websites of some of the xxx to download their homepages
    3. Call an LLM yet again to summarize the text that it found on the website
相关推荐
海兰8 分钟前
mcporter — 安装部署及使用完全指南(二)
人工智能·agent
一拳不是超人12 分钟前
LangChain 们的丧钟?DeepSeek 把 Agent 开发变成了拼乐高
人工智能·agent
麻雀飞吧15 分钟前
零基础选量化工具,先把问题说清楚
人工智能·python
向成科技21 分钟前
新品亮相|向成电子IPCA_3588H AI边缘网关重磅发布,算力下沉,自主可控
人工智能·边缘计算·国产化·硬件·边缘网关·主板·端侧ai
段一凡-华北理工大学25 分钟前
AI推动工业智能化转型~系列文章20:工业 AI 平台架构:云-边-端协同的技术体系
人工智能·python·架构·工业平台·云-边协同
IT_陈寒28 分钟前
Python线程池吞了异常还不告诉我,这谁顶得住啊
前端·人工智能·后端
CodeBlog-star28 分钟前
Harness Engineering:Pi Agent 架构深度解析
人工智能·python·架构·harness工程
chen_zn9537 分钟前
《VLA 系列》Human-to-Robot Transfer | 人类视频共训练 | 跨本体涌现迁移 | 论文解析
人工智能·深度学习·transformer·具身智能·vla
恣逍信点43 分钟前
《凌微经》价值论:变化即本体,价值即涌现
人工智能·科技·程序人生·蓝桥杯·业界资讯·交友·哲学
CC大煊1 小时前
从夯到拉:锐评国内向量模型选型
人工智能·ai·架构·langchain