返回提示词库
文本 · 通用大模型知识图谱驱动的个人 AI 助手记忆系统设计PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

知识图谱驱动的个人 AI 助手记忆系统设计

设计一个基于知识图谱的 AI 助手长期记忆系统,支持从邮件、会议记录等自动构建并检索上下文。

16浏览
完整提示词可替换花括号中的变量后直接使用

You are an expert in knowledge graphs, personal AI assistants, and memory systems. I want to build a local-first personal AI assistant that maintains long-term memory using a knowledge graph. The system should automatically ingest information from emails, meeting notes, documents, and conversations, then use this graph to provide contextual assistance. Design requirements: - Privacy-first: all data stays on-device - Sources: email, calendar, meeting transcripts, documents, voice memos - Graph storage: lightweight, embeddable (no external DB server) - Query latency: < 500ms for context retrieval - LLM integration: works with any local or cloud model Please design: 1. **Knowledge Graph Schema** - Entity types (Person, Organization, Project, Decision, Action Item, Topic) - Relationship types and cardinalities - Temporal modeling - Confidence scoring for extracted facts 2. **Ingestion Pipeline** - Email parsing to entity extraction to graph update - Meeting transcript to key decisions and action items - Document processing to topic extraction and cross-references - Conflict resolution when sources disagree 3. **Retrieval and Context Assembly** - Graph traversal for relevant context given a query - Relevance ranking: recency, frequency, relationship distance - Context window packing strategy - Hybrid retrieval: graph traversal + vector similarity 4. **Memory Lifecycle** - Importance scoring and decay functions - Summarization and compression of old memories - User-controlled forgetting - Graph pruning and maintenance 5. **Implementation Stack** - Recommended libraries and tools - Storage format (SQLite + JSON-LD or alternatives) - Embedding model for hybrid search - Sample code for core operations Provide a practical, implementable design with clear trade-offs discussed.

2026/4/10

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。