Skip to main content

Overview

The MemoryType type defines the fundamental storage classifications used by the MemMachine engine. Choosing the correct type ensures your data is indexed and retrieved using the most effective algorithms.

Type Definition

type MemoryType = "episodic" | "semantic";
ValueDescription
"episodic"Sequential Memory. Stored in chronological order, ideal for conversation history and logs.
"semantic"Knowledge Memory. Stored by meaning, ideal for facts, user profiles, and long-term knowledge.

Usage Example

import { MemoryType } from '@memmachine/client';

const typesToSearch: MemoryType[] = ['episodic'];