←新闻详情

Unite.AI更新于 11月3日 02:19

Perplexity 详解 Brain 记忆架构与 Agent API 测试方法

Perplexity Details Brain Memory Architecture and Agent API Testing

AI 导读

Perplexity 于 2026 年 11 月 2 日发布技术指南,介绍 Perplexity Computer 中 Brain 记忆系统的架构、Agent API 的记忆构建组件,以及检验存储上下文能否改善后续任务的测试方法。Brain 把会话记录、笔记和知识 wiki 以文件形式分层存放在智能体沙箱中,由后台智能体 Dream 每晚处理当日会话并修订 wiki,改动经 Git 暂存检查后提交。Perplexity 称 30 天配对评估中启用 Brain 的会话正确率提升 9.3 个百分点、召回率提升 8.9,token 用量减少约 15%;Agent API 本身不含自维护记忆系统,需开发者自行管理情景与语义存储。

推荐理由

AI 评分 60

原文拆解了 Brain 的分层记忆文件结构与 Agent API 的上下文传递方式,并给出可复用的记忆效果测试方法。

主题

标签

正文

Perplexity on November 2, 2026, published a technical guide to persistent AI agent memory, detailing the Brain system in Perplexity Computer, the Agent API’s memory-building components, and tests for whether stored context improves an agent’s later work.

Brain’s Architecture and Reported Results

Perplexity describes Brain as its self-improving memory system for Computer, built to organize past work and corrections into an evolving knowledge wiki. It uses token-level memory, meaning information is stored outside the model and read into context when needed. Changing a wiki page alters what the agent can read on a later task without modifying the model’s learned weights.

Brain stores these records as files in the agent’s sandbox across three layers. The sessions/ directory retains raw transcripts and their summaries, notes/ organizes distilled information by subject, and knowledge/ contains the wiki’s linked Markdown pages about people, projects and concepts. The guide classifies session records as episodic memory and the wiki as semantic memory; Skills and saved instructions provide procedural memory for how tasks should be performed.

Background agents called Dream process each day’s session records overnight, produce summaries and revise the wiki when information has changed. Perplexity says it checks staged edits before they are committed through Git, leaving a diff available for inspection. Each memory entry links back to its source, while Brain’s background updates reinforce information that remains valid, revise entries after changes and mark outdated material.

Perplexity reported that Brain-enabled sessions in a 30-day paired evaluation improved correctness by 9.3 percentage points and recall by 8.9, while using roughly 15% fewer tokens. In a separate internal benchmark covering 150 financial-document questions, an exploration agent using standard file tools reached an answer score of 0.627, compared with about 0.37 for semantic search over the same corpus.

Agent API Memory Components

Perplexity explicitly distinguishes its developer offering from Brain: the Agent API does not include a self-maintaining memory system. It instead provides versioned procedures, methods for carrying conversation context between requests, and tools for reading from and writing to a developer-controlled store.

A custom Skill bundles instructions, procedures and supporting files under a version number. A Profile saves the broader configuration, including the model, instructions, tools, Skills, connectors and run settings, under one versioned ID. Skills do not learn independently; their instructions change when a person or automated process uploads a new version.

Developers have two options for preserving working context between turns. They can place selected earlier messages in the next request’s input array, deciding what to retain, summarize, redact or drop. Alternatively, they can pass a completed response’s ID as previous_response_id, allowing Perplexity to maintain the conversation state on its servers without the application resending earlier turns. Either approach still requires any new instructions, tools or model settings needed for the next response.

Episodic and semantic storage remain the developer’s responsibility. Function calling can implement a read operation before the agent acts and a write operation afterward, with the application executing calls and returning results. Recording the outcome, supporting source and subsequent user correction provides the beginning of an episodic record rather than merely logging that information was retrieved. A compatible remote MCP server offers another route by exposing memory operations without separate custom-function wrappers. Perplexity lists GitHub, Slack, Google Drive, Datadog, Linear and Notion among its managed connectors, while custom connectors can provide access to internal systems.

Testing and Computer Controls

The guide’s fresh-session test starts a request without replayed messages or previous_response_id, while preserving access to the same memory store. The agent is then asked to perform related work without receiving the earlier correction again. For a deployment agent, Perplexity proposes checking that the agent retrieves and uses the verified rollback command for the affected service, leaves other services’ procedures unchanged, and adopts newer guidance when the command changes while retaining a traceable source.

For comparisons with and without memory, Perplexity recommends holding the model, Profile and Skill versions fixed and starting from a known store snapshot so one test cannot teach the agent the answer to the next. It also recommends saving failed cases for subsequent revisions to pass. Rather than relying on recall alone, the guide says to measure whether memory-dependent tasks are completed, with cost and latency included.

In Computer, Brain draws on sessions, connected tools, files and artifacts, and user corrections. Its Memory view lets users inspect entries, follow them back to their sources, and edit or delete them. Brain excludes incognito sessions and has a separate toggle.

The guide’s Rho example describes an invoicing project in which Computer reviewed changes overnight, flagged inconsistencies and published a morning digest in Slack. Rho reported reducing weekly meeting time from 2.5 hours to 15 minutes and estimated saving 120 work hours over the 12-week project. Perplexity said the 120-hour estimate covered the combined workflow of connectors, overnight runs and the Slack digest, and that it could not yet quantify memory’s separate contribution.

The guide therefore leaves memory’s individual contribution to Rho’s reported savings unresolved.

来源

Unite.AI