What to Do When Your AI Agents Have Amnesia, and Your Data Layer is a Group Chat

A guide to datapacks for leaders tired of paying for the same lesson twice: relevance, efficiency, and a learning loop.
Anirudh Pandit

Every enterprise AI program eventually has the same problem: a demo agent worked beautifully until you put five of them on the same project into production. By Friday, the first agent has re-asked a customer for an order number that the second agent already had, the third has contradicted the fourth, the fifth has gone AWOL, and nobody can explain why any of this has happened.

The models are not the problem; the Data layer is. Agents start each morning like the lead in a movie about amnesia, with tattoos on their arms, instant-camera photos, and a recap that is missing the important parts.

This blog explains the layer that fixes this agent memory problem: Yugabyte’s context engine for agentic AI applications, Meko, and its core tenet, the datapack.

What is Meko?

Meko is agent-native data infrastructure for multi-agent AI. It is where your agents store what they remember, what they know, what they said, and why they acted.

Poster Image

The core unit of work is the datapack. This is a portable, multi-tenant data store that persists per-agent memory while making knowledge shareable across the entire agent system. Your app creates a datapack and agents talk to it via a single MCP endpoint. You do not need to model a schema first.

Single MCP endpoint

  • Memory: what each agent retains, with a shared layer across the pack
  • Knowledge: a unified, queryable layer built from PDFs, tables, HTML, markdown and live feeds
  • Conversations: full history, auto-tiered so cost tracks usage
  • Decision traces: the prompt, plan, tool calls, and reasoning that tie the rest together

Under the hood is YugabyteDB: Postgres-compatible, with SQL, vector, graph, and time-series in one place. One layer, not four components.

Three Major Problems

Once you get past the demo stage, most enterprise AI agent projects tend to hit the same three problems. If you can identify them early, it becomes much easier to explain where the real value and budget should go.

  1. More context doesn’t mean better context
    The natural instinct is to give AI as much information as possible. That often backfires. Give it too little, and it starts guessing. Give it too much, and the important information gets buried, the answers get worse, and the cost goes up.
    The answer isn’t to keep on adding more context. Instead, retain all available information, but give the model only what it actually needs.
  2. Every agent ends up with its own version of the truth
    Most agents and tools keep their own context. That means they repeat work another agent has already done, use outdated information, and keep sending the same background to the model over and over.
    What you really need is a shared source of truth that every agent, tool, and person can access and update.
  3. It’s hard to know if the agent is using the right information
    Most systems can tell you what the agent answered, but not whether it found the right information to get there. When something is wrong, it’s often difficult to understand why.
    You need to be able to see what the agent missed, learn from it, and improve the next answer. All that has to work without costs spiraling as the amount of information grows.

Not Just Memory: Four Jobs, One Datapack

Everyone talks about memory, which is why most vendors lead with it. But the real value lies in the additional factors that directly impact your P&L. We will explore the five scenarios below once we share the four jobs a datapack does.

Four Jobs, One Datapack

A Group Chat With a Database Budget

Here is how most teams solve this today:

  • Relational data in Postgres
  • Embeddings in a vector database (e.g. pgvector in Postgres, Milvus, Pinecone)
  • Relationships in a graph database
  • Chat logs in an object store
  • Then a pile of glue code, a custom tiering job, a cache, and an observability pipeline…

Managing all of this becomes your team’s second job. And it doesn’t stop there. Even if your app teams can build this complex stitched-up system, the production environment requires your support and DevOps teams to continuously ensure the glue holds together and any drift doesn’t materially impact the production outcomes.

Your Agents

It works (just)… but try asking it a precise question.

Your Merge Code

“Semantically similar to this task, from the last hour, in this workflow, not superseded.” On a stitched stack that is three round trips and a merge function that someone wrote at 2 a.m. In a Meko datapack, this is just one MCP call.

One MCP call

Five Scenarios From the Field

Think of the Meko datapack as a shared project backpack. Different scenes use different pockets.

Five Scenarios From the Field

Scene 1: the handoff that forgot everything

Research on multi-agent systems is clear: the MAST taxonomy attributes 36.9% of failures to inter-agent misalignment. Most of that is state lost at handoff. A summary gets passed; the reasoning does not. A datapack carries the answer and the reasoning together, because the triage agent’s learning is promoted into shared knowledge the billing agent can read.

Without a Datapack

Scene 2: the research pipeline

Collector, summarizer, fact-checker. In a stitched stack, each hoards its own notes. In a datapack, sources go into shared knowledge that is incrementally updated, and every agent queries a single library.

Scene 3: the auditor’s favorite question

“Why did the agent do that?” is a regulatory question as much as a technical one. Decision traces record the prompt, plan, tool calls, reasoning steps, and what was learned and propagated. That is richer than standard observability, maps well to documentation expectations such as the EU AI Act, and can be piped into the observability tools you already run.

Scene 4: the ever-increasing bill

Conversations are write-heavy and read-rarely. Meko keeps recent history hot in YugabyteDB at millisecond latency, tiers older history to S3, and retains only summaries beyond the retention window, which are still queryable.

Ever Increasing Bill

Scene 5: the project that outlives the tool

A developer starts in one AI client and finishes in another. With a Meko project datapack, any MCP-connected client reads the same context. You share the useful parts with the team, keep selected data private, and capture not only the decision but the reason.

The project that outlives the tool

Relevance, Efficiency, and the Loop that Learns

Here is how each capability behaves in a real workflow. The examples are illustrative patterns, not customer results.

Context relevance: stop feeding your agent the whole filing cabinet

The instinct is to give agents everything, just in case. It is the equivalent of answering “what is our refund policy?” by handing someone the entire legal archive and wishing them luck. More context is not better context. Distractors, stale policies, and other agents’ scratch notes all compete for attention.

Context relevance

A datapack lets an agent ask for what matters: semantically similar, recent, in this workflow, not superseded, in a single PostgreSQL statement, with scoping so that private memory stays private.

In practice: a refund agent gets the current rule, the customer’s last ticket, what triage already learned, and the open decision with its reasoning. The superseded 2024 policy stays in the cabinet.

  • For the business: fewer confident-but-wrong answers from stale or irrelevant context.
  • For the architect: a smaller, sharper context window, which usually means faster, cheaper calls.
  • For the CISO: scoping gives you isolation where needed and sharing where valuable.

Efficiency: who is doing the plumbing?

On a stitched stack, your most expensive employee, the LLM, is also doing data entry: extracting entities, updating graphs, deduping, scoping, querying three stores, and merging. You pay high token rates for clerical work.

Efficiency: who is doing the plumbing

In a datapack, extraction, graph updates, and scoping run in the data layer. Conversations tier automatically:

  • Hot in YugabyteDB at millisecond latency
  • Older in S3
  • Summaries only past the retention window, still queryable

In practice: a platform team deletes its custom tiering job, cache layer, and merge function. Agents make one call instead of several.

  • For the CFO: spend that follows usage, and fewer tokens wasted.
  • For the architect: fewer round trips, fewer systems, fewer integration seams.
  • For the on-call engineer: fewer things that page you.

The learning loop: where intelligence compounds

Without a loop, every agent run is Groundhog Day, repeating the same mistakes, the same rediscoveries, and a new invoice. With a loop, runs build on each other:

  • Agents act
  • Decision traces record what happened and why
  • Learnings are extracted and promoted into shared knowledge
  • The next run retrieves them and starts ahead

The learning loop: where intelligence compounds

In practice: a billing agent learns that a particular error code almost always means a duplicate charge, not fraud. That learning is promoted, and from then on every agent in the pack starts with it. Nobody files a ticket asking engineering to “update the prompt.”

What “getting better” looks like:

The same pack over time.

  • For the business: quality that improves with use instead of drifting.
  • For the architect: knowledge that survives restarts, tool switches, and team changes.
  • For compliance: the same traces that power the loop are your audit trail.

The three connect. Relevance determines what the agent sees, efficiency determines what it costs, and the loop determines how good it gets next time. Memory is what makes all three possible.

The Mental Model, For an 8-Year-Old (and Your Board)

“It’s a group project with one big backpack.”

Each kid has a private notebook (memory). Everyone shares the class encyclopedia (knowledge). A chat diary records what was said, and old pages go to the attic (conversations). A why-diary records why the group decided what it did (decision traces).

New kid joins? Hand them the backpack.

Four pockets, four Meko constructs

How Memory and Knowledge Actually Work

Meko supports five kinds of memory:

  1. working
  2. episodic
  3. semantic
  4. procedural
  5. shared

The default implementation is mem0, and it is pluggable. Entity extraction, graph updates, and scoping run in the data layer, which keeps that work out of your agent’s token budget.

How Memory and Knowledge Actually Work

The design principle is isolation where needed, sharing where valuable. Memory starts private, and learnings that help everyone are promoted into shared knowledge.

Per-agent memory plus shared knowledge is the mechanism; collective memory is the outcome.

How private learning becomes collective knowledge.

Ontology: The Org Chart For Your Facts

An ontology is a rulebook describing which things exist in your business and how they relate. Customers place orders. Orders contain products. Policies govern refunds. It is the reason “active customer” can mean one thing to finance, support, and the agent handling a ticket.

A Small ontology slice

Why architects should care: agents without a shared map improvise their own.

Relational data gives you structure, graphs give you relationships, vectors give you similarity. A datapack on YugabyteDB lets those three reasons come together into a single query surface, where an enterprise ontology can actually live and be enforced.

Why it Matters

  • Fewer moving parts: one datapack instead of four stores plus glue means fewer pages at 3am. It takes just milliseconds to create a datapack
  • Compounding intelligence: a lesson learned once helps every agent afterward.
  • Defensible by design: decision traces turn “trust us” into “here is the record.”
  • Cost that behaves: tiering aligns spend with usage.
  • Portability: project context follows the work across tools and teammates.

If you are currently mapping your agent architecture, start with one question: where does the state go when an agent hands off? If the answer is “a summary,” you have found your first datapack.

To find out more about Meko and sign up for free, visit mekodata.ai

Anirudh Pandit

Related Posts

Explore Distributed SQL and YugabyteDB in Depth

Discover the future of data management.
Learn at Yugabyte University
Get Started
Browse Yugabyte Docs
Explore docs
PostgreSQL For Cloud Native World
Read for Free