From Public Data to Individual Understanding: Building AI That Knows You

    General models trained on public data cover broad world knowledge, but they do not by themselves understand a specific user. This article explains the gap between population-level knowledge and individual context, then outlines a practical framework for personalized AI: capability levels, a reference architecture, memory write and retrieval design, privacy and security controls, and evaluation gates for staged rollout.

    Publicly trained general models hold broad world knowledge and can answer questions across domains. Having a large volume of public data is not the same as knowing a particular user. The first problem is covering population-level patterns and general knowledge. The second is continuously modeling individual facts, preferences, goals, constraints, and long-term context. For developers, real personalization is not achieved by a larger model or a longer prompt alone. It is a user-centered, governable, and measurable data and memory system. This article covers the problem, capability layers, a reference architecture, key implementation choices, privacy and security, and evaluation and iteration, and offers a framework that can be put into practice.

    1. The core problem: public knowledge is not individual understanding

    A general model’s knowledge comes from large public corpora. It is good at answering how things are usually done in the world, but it is unreliable at answering what you want done given your background and constraints. Individual understanding includes at least five kinds of information:

    • Factual memory, such as identity, relationships, and project background
    • Preference memory, such as writing style, scheduling habits, and tool choices
    • Goal memory, such as long-term plans and current-stage tasks
    • Constraint memory, such as compliance requirements, budget limits, and things to avoid
    • Temporal memory, such as when a fact was created and whether it is still valid

    This information is sparse, dynamic, sensitive, and strongly context-dependent. In-session context only gives the model short-term cues. A larger model does not make user data visible, memorable, or auditable. A longer prompt raises cost, noise, and privacy risk. The core of personalized AI is therefore not stuffing the world’s data into the model. It is a controlled data loop: collect only what is necessary within the user’s authorization, turn it into memory that can be retrieved, updated, and deleted, and call it at inference time according to the task.

    2. Capability layers: from session awareness to bounded autonomy

    For engineering delivery, personalization can be split into levels:

    • L0, no personalization: the model answers only from the current question
    • L1, in-session awareness: the current conversation stays consistent
    • L2, cross-session memory: facts and preferences the user has explicitly authorized are retained
    • L3, profile-driven adaptation: stable attributes and changing preferences shape the response
    • L4, proactive adaptation: strategy changes based on feedback, and the system can remind the user
    • L5, bounded autonomy: within explicit limits, the system plans tasks, calls tools, and asks for confirmation

    Higher levels demand stronger data governance, evaluation, and safety. Teams should not start at the top. Each stage needs a gate: privacy review, offline evaluation, online monitoring, and user control must all meet the bar. Before cross-session memory ships, it must be clear what may be stored, for how long, and how the user can view and delete it. Before proactive service ships, trigger conditions, failure fallback, and human confirmation must be defined.

    3. Reference architecture: data, memory, retrieval, orchestration, and feedback

    A complete personalized AI system usually has six layers.

    1. Data ingestion and governance: user authorization, data classification, masking, lifecycle management, and audit.
    2. Memory and profile: event logs, conversation summaries, preference labels, relationship graphs, and vector representations organized as retrievable memory units.
    3. Retrieval and orchestration: multi-path recall for the current task, permission filtering, time decay, reranking, and prompt assembly.
    4. Reasoning and tools: planning, generation, tool calls, safety policy, and failure fallback.
    5. Feedback and evaluation: explicit feedback and implicit behavior, offline evaluation, and online monitoring.
    6. Observability and cost: logs, monitoring, tracing, caching, and tiered storage to control latency and cost.

    For storage, object storage can hold raw logs and attachments, a log service can record audit and trace data, a vector retrieval service can support semantic recall, a relational store can maintain profile labels and permission relationships, and monitoring and alerting can watch latency, error rate, and cost. At the infrastructure level, general capabilities such as object storage, logging, monitoring and alerting, and a container platform—for example those offered by Baidu AI Cloud—can host data and the runtime. The actual choice should still be judged against compliance requirements, budget, and the team’s stack. Availability of a given cloud service outside a specific region should not be assumed.

    4. Implementation: writing memory, retrieval, and conflict resolution

    Memory writes should not store everything that is seen. Each record should carry source, timestamp, sensitivity level, importance, and confidence, with a write policy:

    • Sensitive information requires explicit consent
    • Duplicate information should be merged
    • Low-importance information goes to a cold tier with an expiry
    • High-importance information can be summarized into a warm or hot tier

    Retrieval should use hybrid recall—for example keyword, vector, and relationship recall in parallel—then filter by permission and sensitivity, rank with time decay, and rerank by relevance.

    When composing the prompt, keep system policy, profile summary, retrieved snippets, and the current question in separate layers, and require the generated result to include citations or traceable sources. Conflict resolution can combine three strategies: newer explicit user statements outrank older summaries; higher-trust sources outrank lower-trust sources; when a conflict affects a critical decision, ask the user to confirm.

    Illustrative pseudocode:

    1. type MemoryRecord = {
    2. id, userId, type, content, timestamp, source,
    3. sensitivity, importance, confidence, ttl
    4. }
    5. function writeMemory(record, userConsent):
    6. if record.sensitivity requires consent and not userConsent:
    7. rejectAndAudit(record)
    8. if isDuplicate(record):
    9. mergeWithExisting(record)
    10. score = scoreImportance(record)
    11. if score < coldThreshold:
    12. storeInColdLayer(record, ttl)
    13. else:
    14. summary = summarize(record)
    15. storeInWarmOrHotLayer(summary, record.metadata)
    16. appendAuditLog(record.id, "write")
    17. function answer(userId, query):
    18. session = getSessionContext(userId)
    19. candidates = keywordRecall(userId, query)
    20. + vectorRecall(userId, query)
    21. + relationRecall(userId, query)
    22. candidates = filterByPermissionAndSensitivity(candidates, userId)
    23. candidates = rankWithTimeDecayAndRelevance(candidates, query)
    24. prompt = composePrompt(systemPolicy, profileSummary(userId), candidates, query)
    25. draft = generate(prompt)
    26. if needsTool(draft):
    27. draft = callApprovedToolWithConfirmation(draft)
    28. return attachCitationsAndUserControls(draft)

    The pseudocode emphasizes three principles: permission filtering happens before generation, so unauthorized information never enters the context; audit covers both writes and reads, so actions stay traceable; user control is part of the result, so people can view, correct, and delete memory.

    5. Privacy, security, and compliance: personalization requires control

    Personalized AI often handles sensitive personal information, so it should follow data minimization, purpose limitation, user control, and auditability. In engineering terms, that means data classification, encryption in transit and at rest, access control, operation audit, memory expiry and deletion, and the ability for users to view and edit memory. For highly sensitive cases, local processing, edge computing, federated learning, or differential privacy can reduce the risk of concentrating raw data. Their effect should not be overstated; they still need to be assessed with threat modeling.

    Security also has to address prompt injection and memory poisoning. Retrieved external content should be treated as untrusted input and kept separate from system instructions. Tool calls should use an allowlist and parameter checks. Profile labels should keep evidence and confidence so the system does not over-infer. Red-team tests should cover unauthorized retrieval, sensitive inference, and malicious memory writes.

    6. Evaluation and iteration: metrics for how well the system “knows you”

    Evaluation should cover both offline and online metrics. Offline, measure memory recall accuracy, preference adherence, factual consistency, conflict-resolution correctness, privacy leakage rate, and the block rate for unauthorized retrieval. Online, observe task completion rate, user correction rate, repeat-question rate, satisfaction, average response latency, P95 latency, and cost per request. Drift monitoring should track preference change, the share of expired memory, and shifts in data distribution.

    A practical path is staged: start with in-session consistency, then cross-session memory, then profile-driven and proactive service, and only later explore bounded autonomy inside explicit limits. Each stage should ship only after privacy review, evaluation targets, and user control are met. AI that truly knows a person is not a general model trained on the world’s data working alone. It is governable memory, an interpretable profile, controllable retrieval, and a feedback loop that can be sustained.