
In this guide
The decisions and working steps ahead.
Decide what survives the conversation
Retrieve by owner before relevance
Give corrections a path through the system
A support agent opens a new ticket for a customer who has asked for replies in French. The previous ticket contains that request and a temporary delivery address. Which detail should the next agent remember? The language preference applies to future replies. Reusing the address for a new order could send a parcel to the wrong place.
Decide what survives the conversation
Keep a checkpoint for work in progress. It lets an agent resume a thread after a tool call or a break. A new thread should only inherit information that still applies to its user and project. LangChain’s memory overview describes this distinction between thread state and longer-lived memory.
At the end of a session, extract candidate decisions, preferences and open questions. Save with each candidate the original source, who confirmed it, where it applies and when it expires or needs review. A delivery address for one order belongs on that order. A customer’s explicit language preference can belong on their profile. Store an inference separately until someone can confirm it.
Retrieve by owner before relevance
When a new ticket arrives, identify the customer from the authenticated application request. Restrict the query to that customer’s permitted records, then look for the information the task needs. A known preference field can be read directly. For free-text decisions, an exact search can find a ticket number while semantic search can find an earlier description in different words.
Suppose a teammate searches for “renewal exception” and the original decision says “extend the trial.” Check whether the search returns the decision and whether its source is still valid. If lexical and semantic searches each find useful records, combine their ranked lists and evaluate the result on actual requests. Elastic’s reciprocal rank fusion documentation explains one way to combine lists with different scoring scales.
Give corrections a path through the system
A customer changes their preference to Dutch. Mark the French record as superseded and query again from a fresh thread. The agent should retrieve Dutch even if French appears in more historical tickets. Use recency to order competing evidence only after checking scope, expiry and explicit corrections.
When a customer deletes a preference, remove it from derived summaries and search indexes under the applicable retention rules. Run a fresh retrieval after the change. Keep write permissions in the application. A remembered request to approve purchases cannot grant an agent that permission.
Run a recall test before rollout
Prepare paired sessions with a reviewer who knows the workflow. In one pair, record a preference and open a new ticket. In another, correct the preference between tickets. Add a deleted record, a similarly named customer in a different workspace and a request with no relevant history. Write down the expected record or expected empty result before running the agent.
Compare the same requests with and without memory. Record which source came back, whether the answer used it correctly, what crossed an account boundary and how long retrieval took. A fast answer from the wrong account is a failed test. When memory increases cost, compare that cost with the number of additional completed tasks the team accepts. How to measure cost per accepted task

