Cognitive architecture 又是个什么东东?

自Langchain:

https://blog.langchain.dev/what-is-a-cognitive-architecture/

https://en.wikipedia.org/wiki/Cognitive_architecture

定义

复制代码
A cognitive architecture refers to both a theory about the structure of the human mind and to a computational instantiation of such a theory used in the fields of artificial intelligence (AI) and computational cognitive science.

hypothesis about the fixed structures that provide a mind, whether in natural or artificial systems, and how they work together --- in conjunction with knowledge and skills embodied within the architecture --- to yield intelligent behavior in a diversity of complex environments.

认知架构 指的是一种人类心灵结构的理论,也可以指这种心灵结构理论在人工智能(AI)及计算认知科学领域中的计算实现。

一个产生思维的固定结构假设(无论是在自然系统还是人工系统中),该假设也说明了这些固定结构是如何与架构中所包含的知识和技能协同工作,从而在复杂环境的多样性中,产生智能行为。


这套理论说明非常费解, Langchain 研究员:

认知架构是指你的系统如何思考------ 换句话说,就是接受用户输入并执行操作或生成响应的代码/提示/LLM 调用的流程。

  1. "认知":因为代理系统依赖于使用 LLM 来推理要做什么。

  2. "架构":因为这些代理系统仍然涉及大量与传统系统架构类似的工程。


AI Agent 是一个用 LLM 来做程序的控制流决策的系统。

An AI agent is a system that uses an LLM to decide the control flow of an application.

Cognitive architecture

下面这张图展示了不同层次 Cognitive architecture 的例子:

从上往下不同 level, 从左→右不同阶段

• 标准化的软件代码(code) :一切都是 Hard Code ,输出或输入的相关参数都直接固定在源代码中,这不构成一个认知架构,因为没有 cognitive 的部分;

• LLM Call ,除了一些数据预处理外,单个 LLM 的调用构成了应用程序的大部分,简单的 Chatbot 属于这一类;

• Chain:一系列 LLM 调用,Chain 尝试将问题的解决分成若干步,调用不同的 LLM 解决问题。复杂的 RAG 属于这一种:调用第一个 LLM 用来搜索、查询,调用第二个 LLM 用于生成答案;

• Router:在前面的三种系统中,用户可以提前知道程序会采取的所有步骤,但在 Router 中,LLM 自行决定调用哪些 LLM ,采取怎样的步骤,这增加了更多的随机性和不可预测性;

• State Machine ,将 LLM 与 Router 结合使用,这将更加不可预测,因为这样结合放入循环中,系统可以(理论上)做无限次的 LLM 调用;

• Agentic 的系统:大家也会称为" Autonomous Agent ",使用 State Machine 时,对于可以采取哪些操作以及在执行该操作后执行哪些流程仍然存在限制;但当使用 Autonomous Agent 时,这些限制将被删除。LLM 来决定采取哪些步骤、怎样去编排不同的 LLM ,这可以通过使用不同的 Prompt 、工具或代码来完成。

简单来说,一个系统越是" Agentic ",LLM 就越大程度地决定系统的行为方式。

Credit from: Agent 最全 Playbook:场景、记忆和交互创新

混个 google agent whitebook

图:

AI 小入门

快速开启 - ApiHug如何在15分钟内,使用 ApiHug 启动一个API开发项目.https://apihug.com/zhCN-docs/startApiHug - API design Copilot - IntelliJ IDEs Plugin | Marketplacehttps://plugins.jetbrains.com/plugin/23534-apihug--api-design-copilot

相关推荐
智泊AI16 小时前
Embedding是什么?Embedding的原理是什么?
llm
jasonj3317 小时前
大模型与Dify实战:汽车研发工程师的AI工具
ai
CoderJia程序员甲17 小时前
GitHub 热榜项目 - 日榜(2025-10-15)
ai·开源·大模型·github·ai教程
AlfredZhao18 小时前
比 "26ai" 更震撼的,是 Oracle AI 向量搜索改写的生命答案
ai·vector·search·26ai
come112341 天前
Chrome MCP Server 的安装与使用
ai
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2025-10-11)
ai·开源·github·ai编程·github热榜
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2025-10-14)
ai·开源·大模型·github·ai教程
kailp1 天前
未来栖居的科技蓝图:「摩登豪宅」特展揭示2025智能家居“隐智”新范式
科技·ai·智能家居·云渲染·渲染图
小杨互联网1 天前
构建推理缓存以节省高流量 LLM 应用程序的成本
缓存·llm·大型语言模型
大模型教程2 天前
一文搞懂RAG:凭啥阿里70K算法岗都在用它?
程序员·llm·agent