← 返回提示词库
ClaudeAdvancedCoding

记忆增强智能体架构

区分短期、长期与程序性记忆层级,为智能体提示词注入结构化记忆,实现个性化持续学习。

❤️ 478 likes

📋 提示词全文

为[智能体]设计记忆系统。短期记忆:最近5轮对话{角色, 内容}。长期记忆:向量数据库存储{相关度, 内容}。程序性记忆:工具调用模式{任务类型, 工具序列}。编写整合三层记忆的系统提示词模板。

💬 输入示例

场景:个性化学习辅导智能体

✨ 输出示例

[短期记忆]:今日学习了微积分基础概念 [长期记忆]:该用户在微积分方面较薄弱,偏好图形化解释 [程序性记忆]:该用户偏好先做测验再讲解的学习模式 系统提示词模板:根据以上记忆层信息,为用户提供针对性辅导……

🏷️ 标签

#记忆系统#智能体架构#长期记忆#个性化#系统设计

💡 使用技巧

  • Replace the variables in brackets ([]) with your specific situation.
  • Specify the desired tone and length of writing for more accurate results.
  • Request additional modifications based on the generated output to improve quality.
  • Specifying a particular audience allows AI to adjust vocabulary and explanation level.

🔗 相关提示词

Effective Writing Strategies with AI

AI writing prompts let you efficiently produce blog posts, business emails, press releases, novels, and more. The key is to assign AI a precise role, and clearly specify the desired tone, length, and target audience. For example, requesting "write a 2000-word SEO-optimized blog post in a professional tone" yields significantly higher-quality output. After generating a draft, iterative feedback helps elevate the final quality step by step.

This prompt belongs to the Coding category, optimized for Claude at a Advanced level. It is systematically designed applying core prompt engineering principles: role assignment, context setting, and constraints.

Explore More Prompts

Discover 90+ verified prompts in the PromptGenie library.

Browse Library