Skip to main content

Overview

Memind retrieval is designed to assemble useful agent context, not just return similar text. Many memory systems use a simple retrieval path:
This works for basic recall, but it often breaks down when agents need exact terms, source context, long-running topics, time-aware memory, or higher-level understanding. Memind provides two retrieval strategies: Use SIMPLE when memory should feel instant. Use DEEP when memory should be more complete. Both strategies can retrieve across multiple memory layers:
  • Insight Tree for high-level understanding
  • Memory Items for structured facts, events, directives, playbooks, and resolutions
  • Raw Data captions for source-level context
  • Item Graph for related entities and relationships
  • Memory Threads for long-running topics and project context
  • Temporal signals for time-aware retrieval
The goal is to return context that an agent can use immediately: facts, evidence, and interpretation.

Why top-k memory retrieval breaks down

Most memory systems eventually hit the same retrieval problems. Memind retrieval is designed around these failure modes. It combines semantic search, keyword search, temporal signals, graph relationships, memory threads, Raw Data captions, and Insight Tree context into a retrieval result that is more useful for agents.

Layered retrieval

Memind retrieval is layered retrieval. It searches what was stored, what was understood, where it came from, how it connects, and when it happened. This is the core difference:
Similarity search finds related text. Memind retrieval assembles usable agent context.

Same query, different retrieval

Consider this query:
What should I remember before writing the next Memind docs page?
A typical vector-memory system may return fragments:
These facts are useful, but the agent still has to infer the broader writing strategy. SIMPLE retrieval can return a context package:
DEEP retrieval can investigate further when the initial context is not enough:
The difference is not only the number of returned memories. The difference is that Memind can assemble evidence, interpretation, source context, and related topic context together.

Retrieval strategies at a glance

Memind exposes two main retrieval strategies. A practical default is:
  • Start with SIMPLE for normal agent turns.
  • Use DEEP when the query needs stronger recall, better evidence, or cross-session reasoning.

SIMPLE retrieval

Simple Retrieval Flow
SIMPLE retrieval is the low-latency retrieval path. It is designed for millisecond-level memory recall in agents and chatbots that need to retrieve memory before many responses or tool actions. SIMPLE is not plain vector top-k. It runs multiple retrieval channels and fuses their results.

How SIMPLE works

At a high level, SIMPLE retrieval follows this flow:
The main channels are: After candidate retrieval, Memind merges the channels with weighted fusion, aggregates related Raw Data captions, and truncates the final result to fit the configured context budget.

Why SIMPLE is useful

SIMPLE gives agents fast memory recall without relying on a heavier reasoning path. It improves over plain vector search because each channel covers a different failure mode: Use SIMPLE when retrieval should be fast but still memory-aware.

When to use SIMPLE

Use SIMPLE for:
  • millisecond-level memory recall
  • normal chat turns
  • low-latency agent loops
  • direct fact or preference lookup
  • retrieving recent or obvious context
  • applications where retrieval runs often
  • cases where you want strong recall without extra deep-retrieval cost
Example:

DEEP retrieval

Deep Retrieval Flow
DEEP retrieval is the quality-first retrieval path. It is designed for second-level retrieval latency, where the application can spend more time to get broader evidence, better recall, and higher-quality context. DEEP is useful for harder questions: ambiguous queries, cross-session investigations, project-level questions, or cases where the agent needs stronger evidence before acting. DEEP does not simply increase top-k. It first checks whether the initial context is sufficient. If not, it expands the search intelligently.

How DEEP works

At a high level, DEEP retrieval follows this flow:
The key difference is the sufficiency check. Before expanding the search, Memind looks at the initial insights, items, and Raw Data captions and asks whether the current context is enough to answer the query. If it is enough, Memind can return early. If not, it continues into deeper retrieval.

Why DEEP is useful

DEEP helps when the first search pass does not provide enough context. This makes DEEP useful for retrieval quality, not just retrieval quantity.

When to use DEEP

Use DEEP for:
  • second-level retrieval where quality matters more than latency
  • ambiguous user questions
  • cross-session memory search
  • project or investigation questions
  • queries that need broader evidence
  • cases where missing context is expensive
  • tasks where retrieval quality matters more than latency
Example:

SIMPLE vs DEEP

Use this table as a practical guide. In most applications, SIMPLE is the default retrieval mode. Use DEEP selectively for harder questions.

What retrieval returns

Memind retrieval returns a structured result, not just a flat list. The formatted result is designed for agent context construction:
Each layer has a different role: A useful retrieval result should help the agent understand both what happened and what Memind has learned from it.

Retrieval traces

Memory retrieval can be difficult to debug. Memind provides retrieval traces so developers can inspect what happened during retrieval. A trace can help answer questions like:
  • Was SIMPLE or DEEP used?
  • Which retrieval channels ran?
  • Did keyword search return candidates?
  • Did temporal retrieval activate?
  • Did graph assist or memory-thread assist change the result?
  • Did DEEP trigger query expansion?
  • Was reranking applied?
  • Why did a specific item appear in the final result?
This is especially useful when retrieval feels wrong. Instead of treating memory as a black box, you can inspect the retrieval path and tune the configuration.

Configuration

Retrieval behavior can be controlled through runtime configuration. Common configuration areas include: Start with default settings, inspect retrieval traces in Memind UI, then tune strategy, top-k limits, assist behavior, and reranking only when needed.