HaiAI123

Curated Global AI Tools Directory

Industry update
Flat

Developer details memory extraction system for a personal AI assistant

11/14/2026 — 11/14, 21:14·1 sources (all)·1 reports (all)

Key takeaways

  • A developer on Juejin explains how a personal AI assistant splits topics after each conversation turn, extracts memory candidates and valida…

Background & analysis

On November 14, 2026, a developer published an article on Juejin describing how a personal AI assistant's Memory system segments topics, extracts memory candidates, and validates them before storing after each conversation round. The piece walks through a Hangzhou travel guide scenario to make the mechanism concrete: after the assistant delivers a guide, the user immediately changes the boat departure time, and several days later asks for that earlier guide again, which means the system must work out which response it should retrieve.

The article explains that Runtime writes the message and a pending task into MySQL once a reply finishes. The example schema uses three fields, session_id, msg_id and version, and the two guides in one session are recorded as (s17, a42, 1) and (s17, a44, 1). Because the second round is a fresh follow-up question, it gets a new msg_id, while msg_id is only reused and version incremented when the user regenerates the same reply. A backend Worker picks up the task, reads the QA pairs after the previous split cursor for that session, filters messages by permission before memory construction, and assembles the QA pairs in chronological order, each carrying the timestamp and sequence number of its final message.

For splitting and storage, the developer supplies the model with a short rule set that determines whether an earlier topic has finished and picks out the last QA pair of that topic. The Worker checks that end_turn matches a round in the input, then within a single transaction saves the range and title covering rounds 1 through 2, advances the cursor, and registers an extraction task, leaving round 3 for the next processing window. If round 3 asks where to buy West Lake boat tickets, it returns should_split=false and the cursor stays put. The system also sets a wrap-up task for sessions that have gone quiet, so the final segment can still be stored even if the user closed the page after chatting. The write-up currently stops at the level of this workflow and the accompanying design examples.

AI-generated from 1 reports · updated 3 days ago

updream
24-hour heatHeat index 25 · peak 31 · 23h ago
24 hours agonow

Reports on this story headlines open the original

Nov 14
  1. A developer on Juejin walks through how a personal AI assistant segments a conversation and extracts memory candidates after each turn, then validates them before storage. The post details the MySQL schema, cursor advancement, and evidence checks keyed on message IDs and versions, illustrated with a Hangzhou travel-plan example.

    掘金AI score 53

Other stories people are talking about

How is heat calculated?About the method

Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.

This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.

Surge
Discussion rising fast
New
First report within 6 hours
Rising
Still gathering discussion

Back to AI industry updates →