Recalling Memories

Recall retrieves the most relevant memory context for downstream reasoning. Think of this as building a prompt-ready memory snapshot.

When to Use This

  • Build system context before an LLM response

  • Fetch tenant/user-specific background quickly

  • Pull compact context instead of scanning all stored memory

Request Fields

Optional Fields

Field
Type
Description

namespace

string

Scope retrieval to one namespace. Highly recommended in production.

maxChunks

number

Maximum number of chunks to return (default usually 10).

Step-by-Step

  1. Choose namespace scope.

  2. Set chunk budget (maxChunks / num_chunks).

  3. Execute recall.

  4. Inject returned context into your LLM flow.

Example Request Body

Examples by Language

Response Notes

  • llmContextMessage: compact prompt-ready memory context

  • counts: retrieval diagnostics (entities/relations/chunks)

  • cached: cache hit indicator when available

Last updated