Skip to content
be-human.ai
← Back to the journal

Context & memory

Superintelligence Memory Latency: Keep Company Recall Fast as Data Grows

Measure how long your AI agent takes to recall company facts as memory grows, set response targets, and know when to narrow scope or reindex.

Be Human typographic cover with the title: Superintelligence Memory Latency: Keep Company Recall Fast as Data Grows
Conceptual illustration created with AI · Be Human

AI agent memory retrieval latency is the time an agent spends finding and loading the company facts it needs before it can answer. It rises as memory grows, because there are more candidate records to search, rank, filter by permission and assemble into context. You keep recall fast by measuring that time at several memory sizes, setting a response budget for each kind of task, and acting when the trend crosses the budget.

Key takeaways

  • Measure retrieval time separately from generation time, so you know which part of a slow answer is causing the delay.
  • Test at several memory sizes that match how your company really grows, not at one snapshot taken on launch day.
  • Set budgets per task type, such as a single policy lookup versus a review of one customer's history across many records.
  • Narrow each query to the records a role needs, so a larger memory does not mean a larger search for every question.
  • Review latency on a fixed schedule, and treat a missed budget as a change to investigate, not a complaint to ignore.

Why recall slows down as company memory grows

A company's memory is not a single file. It holds policies, contracts, customer records, meeting notes, corrections from staff and the history of past decisions. Each new source adds candidates. A search that returned the right paragraph quickly when the memory held a small set of documents can return dozens of near matches once the same memory also holds years of tickets, duplicate versions of a sheet and old drafts of the same policy.

The slowdown has several sources. The index gets larger and each lookup does more work. Permission checks run against more records. Duplicates push the useful source down the ranking, so the system loads more text into the prompt just to be safe. The model then reads a larger context before it writes anything. A more capable agent often makes this worse, because it chains several lookups, calls tools and checks one fact against another. The person waiting experiences the whole chain, not a single search, which is why a memory that feels fast in a demo can feel slow in daily use.

Separate the three clocks before you change anything

Most teams look at one number: how long the answer took. That number hides where the time went. Split each request into three stages and time them separately.

  • Query time: from the moment the agent asks for memory to the moment candidate records come back.
  • Assembly time: filtering by permission, ranking, deduplicating and loading the chosen text into the working context.
  • Generation time: the model reading that context and writing the answer.

Separate clocks let you act on the right stage. If query time grows while the candidate count stays small, the index or the search setup is the likely suspect. If assembly time grows, the problem is usually ranking or the amount of text loaded. If generation time grows, the agent is probably reading more than the task needs. This stage-by-stage view follows the general practice of tracing a request through its parts, as described in the OpenTelemetry observability primer. You do not need a large platform to begin. A structured log line per stage, tied to a request identifier, is enough for a first review.

A step-by-step method to measure retrieval time

Use the same method every time, so results from one month can be compared with results from the next. A simple sequence is enough for most operations.

  • Build a fixed test set of real questions from staff and customers, and for each question write down the record that should be used to answer it.
  • Record the memory size, the index version and the model version before each run, so a change in speed can be traced to a cause.
  • Time each stage separately and log how many candidate records came back, not only the final answer time.
  • Run each question several times and look at the slow end of the results, because one slow search matters to the person waiting for it.
  • Check whether the expected record appeared among the candidates, so a speed gain does not quietly reduce recall.
  • Store the test set, the results and the change notes together, and rerun the same set after every change to memory, index or model.

The last two steps are the ones teams most often skip. A fast search that returns the wrong record is not an improvement, and it can be harder to notice than a slow one. Pair every latency run with a retrieval quality check so both results move in the open. The approach is similar to the recurring evaluations described in Anthropic's guidance on evals for AI agents, where outcomes are graded alongside the path the agent took. For a deeper method on the quality side, see how to test retrieval quality in an AI knowledge base.

Set response budgets by task, not by agent

A single response time target for the whole agent is too blunt. Looking up one policy clause and summarizing a customer's full contact history have different natural costs, and a shared target either hides real problems in the simple tasks or fails the complex ones every time. Set a budget for each task type, then compare every run against the budget for its type. Each budget should answer three questions: how long the user can reasonably wait, what the user sees while waiting, and what happens when the budget is missed.

A practical starting guide:

  • Single fact lookup, such as a current return window or a named contact: aim for an answer in a few seconds, including generation.
  • Multi-record answer, such as the account history before a renewal call: allow more time, but show progress so the wait does not feel silent.
  • Memory write, such as saving a staff correction: allow time for the write and its review step, because the fact should not become memory until it is checked.
  • Background task, such as a nightly summary: no one is waiting, so the budget is about finishing before the people who read it need it.

Write the budgets down with the owner of each answer. A budget chosen only by the technical team tends to be either too loose to catch problems or too tight to ever pass. The people who depend on the answers should agree on what slow means for their work, and the agent should be measured against that agreement.

Illustrative scenario: a support agent that slows after a data import

Illustrative scenario: a support operation imports a long ticket history into an agent that already answers policy questions. On the first day after the import, policy lookups still feel quick. A few days later, staff notice that the same questions take longer, and one answer quotes a refund rule from an old ticket instead of the current policy. The stage timings show that query time and assembly time both rose, while generation time stayed steady. The candidate list for a single policy question had grown from a handful of records to many near duplicates, including old macros and draft versions.

The fixes were ordinary. The team limited the support agent's memory to support records and approved policies, so finance drafts and sales notes were no longer searched for support questions. They removed exact duplicates and marked the current refund policy as the owned record, so one fact had one authoritative version. They then reran the same test set and confirmed that the current rule returned as the top candidate. Assembly time fell because fewer full documents were loaded. The model did not change at all. For the scoping logic behind this kind of fix, see memory scope by department and memory retrieval ranking by source and owner.

The lesson is that the slow part was not a shortage of speed. It was an unbounded search over material that should not have been there in that form.

Who keeps response times in range after launch

Be Human designs personalized AI infrastructure for companies, including the memory, tools, channels and permissions an agent needs for one defined role. Its managed operations can include monitoring of stage timings, recurring evaluations against the same test set, permission reviews as the company's memory grows, incident response when a budget is missed, and controlled improvements that are reviewed before they reach production. The work is remote and available in English and Portuguese, and the aim is that each change to memory, index or model leaves a record that someone can read later.

Take the free Be Human AI diagnostic to find the first task worth handing to an agent and to see where its memory would slow down first.

Frequently asked questions

What is the difference between retrieval latency and response time? Retrieval latency covers the search, filtering and loading of company memory before the model writes. Response time includes that retrieval, the generation, and any tool calls the agent makes along the way. Measure both, because each is fixed in a different place.

How often should we measure agent memory retrieval latency? Run the fixed test set after every change to memory, the index or the model, and review it on a regular schedule that matches how fast your memory grows. A monthly review is a reasonable starting point for a stable operation, and a review should also follow any large import or migration.

Does a faster model solve slow recall? Usually not. If the search returns many candidates or loads too much text, the model still has to read all of it, so generation time and assembly time stay high. Narrowing scope, removing duplicates and ranking by owner address the cause more directly than a faster model does.

What should we do when a response budget is missed? Start with the stage timings to see which clock moved, then check the candidate count and the scope of the search. Make one change at a time and rerun the same test set, so you can see whether the change helped and whether recall stayed intact.

Your next step

See where an AI agent fits in your company first.

Take the free Be Human AI diagnostic. A few questions about your work show which task to hand to an agent first, what it needs to know and where a person approves.

Be Human editorial guidance. Examples are illustrative unless explicitly attributed. Sources provide background; implementation choices depend on your workflow.

Less busywork. More room for you.

Bring us the work you wish you had time for.

Book a call to try a personalized AI agent free for 7 days ↗Or take the free AI diagnostic →