Prompt Memory Limited info

DeerFlow Memory: Extract User Facts from One Message (JSON)

A short prompt from DeerFlow's memory backend: extract clear, specific facts about the user from one message as JSON, each with one of seven categories (preference, knowledge, context, behavior, cognitive, goal, correction) and a confidence from 0 to 1, skipping vague or temporary information.

  • 🤖 Any chat LLM
  • 🗂️ Memory

Prompt by DeerFlow Authors, Bytedance (bytedance/deer-flow) · Original source (opens in a new tab)

DeerFlow Memory: Extract User Facts from One Message (JSON) — prompt preview

The prompt

prompt
Extract factual information about the user from this message.

Message:
{message}

Extract facts in this JSON format:
{
  "facts": [
    { "content": "...", "category": "preference|knowledge|context|behavior|cognitive|goal|correction", "confidence": 0.0-1.0 }
  ]
}

Categories:
- preference: User preferences (likes/dislikes, styles, tools)
- knowledge: User's expertise or knowledge areas
- context: Background context (location, job, projects)
- behavior: Behavioral patterns
- cognitive: Stable reasoning, response-structure, and collaboration habits
- goal: User's goals or objectives
- correction: Explicit corrections or mistakes to avoid repeating

Rules:
- Only extract clear, specific facts
- Confidence should reflect certainty (explicit statement = 0.9+, implied = 0.6-0.8)
- Skip vague or temporary information

Return ONLY valid JSON.

What it is

A short prompt from DeerFlow's memory backend: extract clear, specific facts about the user from one message as JSON, each with one of seven categories (preference, knowledge, context, behavior, cognitive, goal, correction) and a confidence from 0 to 1, skipping vague or temporary information. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the deer-flow repository (MIT License, Copyright (c) 2025 Bytedance Ltd. and/or its affiliates, Copyright (c) 2025-2026 DeerFlow Authors). Licence: https://github.com/bytedance/deer-flow/blob/main/LICENSE. Original author: DeerFlow Authors, Bytedance (bytedance/deer-flow). Changes by FoxaMind: the YAML wrapper (format, version, template) and its two-space indentation removed; .format doubled braces turned back into single braces; {...} placeholders keep the source syntax.

Who it's for

  • Developers building long-term memory for assistants
  • Anyone who wants structured user facts from chat messages

برومبت قصير من نظام الذاكرة في DeerFlow: يستخرج من رسالة واحدة حقائق واضحة ومحددة عن المستخدم بصيغة JSON، لكل منها فئة من سبع (تفضيل، معرفة، سياق، سلوك، نمط تفكير، هدف، تصحيح) ودرجة ثقة من 0 إلى 1، مع تجاهل المعلومات المبهمة أو المؤقتة.

Tips

  • {message} is the message to analyse.
  • Confidence guide in the prompt: an explicit statement is 0.9 or more, an implied one 0.6 to 0.8.
  • The "correction" category is for explicit corrections or mistakes to avoid repeating.