讓你的 AI 永生難忘:Supermemory 讓你打造超強 AI 記憶!
大家好!今天我們要聊聊一個超酷的東西,它能讓你的 AI 變得更聰明、更懂你: Supermemory。 想像一下,你的 AI 不再像金魚一樣只有七秒記憶,而是能記得你說過的每一句話、你的喜好、你的專案,甚至能像個貼心的朋友一樣,預測你接下來想做什麼。 這聽起來很棒,對吧? 讓我們一起來探索 Supermemory 的奧秘吧!
什麼是 Supermemory? 為什麼你需要它?
簡單來說,Supermemory 是一個為 AI 打造的 記憶與上下文引擎。 就像人類的大腦一樣,它能幫助 AI 儲存、理解和運用資訊。 市面上許多 AI 助手,在每次對話結束後就會忘記所有事情。 Supermemory 就像是一個記憶體增強器,讓你的 AI:
- 記得你:儲存你的偏好、過往的討論,並隨著時間推移變得更聰明。
- 理解上下文:在對話中融入你的個人資料,提供更貼心、相關的回應。
- 自動學習:從對話中提取重要的事實,並建立使用者檔案,了解你的需求。
- 聰明處理:處理時間的變化、矛盾的資訊,並且能自動忘記過時的資訊。
如果你是一位 AI 工具的使用者,或者正在開發 AI 產品,Supermemory 都能幫上大忙。 它可以讓你的 AI 助手更個人化、更高效,不再需要每次都重新解釋你的需求。
Supermemory 的核心功能
Supermemory 提供多項強大功能,讓你的 AI 脫胎換骨:
- 🧠 記憶體 (Memory):從對話中提取重要的事實。 處理時間變動、矛盾,並能自動忘記過時資訊。
- 👤 使用者檔案 (User Profiles):自動維護的使用者情境 – 包含穩定事實和近期活動。 只需要一個呼叫,就能在 50 毫秒內獲取資訊。
- 🔍 混合搜尋 (Hybrid Search):RAG (Retrieval-Augmented Generation,檢索增強生成) 加上記憶體,在一次查詢中結合知識庫文件和個人化情境。
- 🔌 連接器 (Connectors):與 Google Drive、Gmail、Notion、OneDrive、GitHub 等平台自動同步,並透過即時 Webhook 進行更新。
- 📄 多模態提取器 (Multi-modal Extractors):支援 PDF、圖片 (OCR)、影片 (轉錄)、程式碼 (AST 感知分塊)。 上傳後即可使用。
如何開始使用 Supermemory?
Supermemory 提供了兩種主要的用法:
🧑💻 對於 AI 工具使用者:給你的 AI 安裝記憶力!
如果你只是想讓你的 AI 助手更好用,你可以使用 Supermemory App 或 Supermemory 插件。
- Supermemory App:
- 不需要任何程式碼,只要前往 https://app.supermemory.ai 註冊並開始使用。
- App 內建 Nova 智能助理,讓你可以立即體驗 Supermemory 的強大功能。
-
Supermemory 插件 (Plugins):
Supermemory 已經支援多款 AI 平台的插件,讓你的 AI 助手立即擁有記憶力。 包含:
- OpenClaw:https://github.com/supermemoryai/openclaw-supermemory
- Claude Code:https://github.com/supermemoryai/claude-supermemory
- OpenCode:https://github.com/supermemoryai/opencode-supermemory
-
MCP 快速安裝 (MCP – Quick install):
npx -y install-mcp@latest https://mcp.supermemory.ai/mcp --client claude --oauth=yes請將
claude替換為你的 AI 助手名稱,例如:cursor、windsurf或vscode。關於 MCP 的更多資訊,請參閱:https://supermemory.ai/docs/supermemory-mcp/mcp
🛠️ 對於 AI 產品開發者:透過 API 整合 Supermemory
如果你正在開發 AI 應用程式,Supermemory 提供了一個強大的 API,可以讓你輕鬆地將記憶、RAG、使用者檔案、連接器和檔案處理整合到你的應用程式中。
- 安裝:
npm install supermemory # or: pip install supermemory - 快速開始 (Quickstart):
import Supermemory from "supermemory"; const client = new Supermemory(); // 儲存對話 await client.add({ content: "使用者熱愛 TypeScript 並偏好函數式編程", containerTag: "user_123", }); // 在一次呼叫中獲取使用者檔案 + 相關記憶 const { profile, searchResults } = await client.profile({ containerTag: "user_123", q: "使用者偏好哪種編程風格?", }); // profile.static → ["熱愛 TypeScript", "偏好函數式編程"] // profile.dynamic → ["正在進行 API 整合"] // searchResults → 相關記憶依相似度排序from supermemory import Supermemory client = Supermemory() client.add( content="使用者熱愛 TypeScript 並偏好函數式編程", container_tag="user_123" ) result = client.profile(container_tag="user_123", q="programming style") print(result.profile.static) # 長期事實 print(result.profile.dynamic) # 最近情境Supermemory 會自動提取記憶、建立使用者檔案,並傳回相關情境。 不需設定 Embedding Pipelines、向量資料庫或 Chunking 策略。
-
框架整合 (Framework integrations):
Supermemory 提供了多種主要 AI 框架的整合包:
// Vercel AI SDK import { withSupermemory } from "@supermemory/tools/ai-sdk"; const model = withSupermemory(openai("gpt-4o"), "user_123"); // Mastra import { withSupermemory } from "@supermemory/tools/mastra"; const agent = new Agent(withSupermemory(config, "user-123", { mode: "full" }));Vercel AI SDK · LangChain · LangGraph · OpenAI Agents SDK · Mastra · Agno · Claude Memory Tool · n8n
-
搜尋模式 (Search Modes):
// 混合 (預設) — RAG + 記憶體於一次查詢中 const results = await client.search.memories({ q: "如何部署?", containerTag: "user_123", searchMode: "hybrid", }); // 傳回部署文件 (RAG) + 用户的部署偏好 (記憶體) // 僅限記憶體 const results = await client.search.memories({ q: "使用者偏好", containerTag: "user_123", searchMode: "memories", }); - 使用者檔案 (User profiles):
Supermemory 會自動為每個使用者維護一個檔案:
const { profile } = await client.profile({ containerTag: "user_123" }); // profile.static → ["Acme 的資深工程師", "偏好深色模式", "使用 Vim"] // profile.dynamic → ["進行身份驗證遷移中", "除錯速率限制"]只需一次呼叫,在 50 毫秒內即可獲取資訊。 將其注入你的系統提示,你的代理程式就能立即知道它正在與誰交談。
-
連接器 (Connectors):
自動將外部資料同步到你的知識庫:
Google Drive · Gmail · Notion · OneDrive · GitHub · Web Crawler
透過即時 Webhook 實現即時更新。 文件會自動處理、分塊並可供搜尋。
-
API 概覽 (API at a glance):
方法 目的 client.add()儲存內容 – 文本、對話、URL、HTML client.profile()使用者檔案 + 可選的單次呼叫搜尋 client.search.memories()混合搜尋,跨記憶體和文件 client.search.documents()文件搜尋,具有中繼資料篩選器 client.documents.uploadFile()上傳 PDF、圖片、影片、程式碼 client.documents.list()列出並篩選文件 client.settings.update()設定記憶體提取和分塊 完整 API 參考 → supermemory.ai/docs
Supermemory 在 AI 記憶體領域的領先地位
Supermemory 在多個 AI 記憶體基準測試中都取得了領先的成績:
| 基準測試 | 衡量指標 | 結果 |
|---|---|---|
| LongMemEval | 跨會話的長期記憶體,含知識更新 | 81.6% — #1 |
| LoCoMo | 跨擴展對話的事實回憶 (單跳、多跳、時間、對抗) | #1 |
| ConvoMem | 個人化與偏好學習 | #1 |
Supermemory 也建立了 MemoryBench,這是一個開源框架,用於對記憶體提供者進行標準化、可重現的基準測試。 比較 Supermemory、Mem0、Zep 等:
bun run src/index.ts run -p supermemory -b longmemeval -j gpt-4o -r my-run
如何基準測試你自己的記憶體解決方案?
Supermemory 提供了 Agent skill,供公司將其自身的上下文和記憶體解決方案與 Supermemory 進行基準測試。
npx skills add supermemoryai/memorybench
只需運行此程式碼並執行 /benchmark-context,Supermemory 將自動為你完成工作!
Supermemory 底層運作原理
你的應用程式/AI 工具
↓
Supermemory
│
├── 記憶體引擎 (Memory Engine) 提取事實、追蹤更新、解決矛盾、
│ 自動忘記過時資訊
├── 使用者檔案 (User Profiles) 靜態事實 + 從引擎建立的動態情境,始終保持最新
├── 混合搜尋 (Hybrid Search) RAG + 記憶體於一次查詢中
├── 連接器 (Connectors) 來自 Google Drive、Gmail、Notion、GitHub 的即時同步...
└── 檔案處理 (File Processing) PDF、圖片、影片、程式碼 → 可搜尋的分塊
- 記憶體不是 RAG。 RAG 檢索文件分塊 – 無狀態,對所有人而言結果相同。 記憶體隨著時間推移提取並追蹤 關於使用者的事實。 它知道「我剛搬到舊金山」取代了「我住在紐約」。 Supermemory 預設一起運行兩者,因此你在每次查詢中都能獲得知識庫檢索 和 個人化情境。 在此處閱讀更多資訊 – https://supermemory.ai/docs/concepts/memory-vs-rag
-
自動遺忘 (Automatic forgetting)。 Supermemory 知道何時記憶變得不相關。 臨時事實 (「我明天要考試」) 在日期過去後到期。 矛盾會自動解決。 噪音永遠不會變成永久記憶。
總結
Supermemory 是一個功能強大的工具,它可以讓你的 AI 變得更聰明,更懂得你的需求。 不管你是想讓 AI 助手更個人化,還是正在開發 AI 應用程式,Supermemory 都是一個值得嘗試的解決方案。
更多資源
- 📖 Documentation
- 🚀 Quickstart
- 🧪 MemoryBench
- 🔌 Integrations
- 💬 Discord
- 𝕏 Twitter
是時候給你的 AI 安裝記憶力了!
參考閱讀
https://github.com/supermemoryai/supermemory