Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.memmachine.ai/llms.txt

Use this file to discover all available pages before exploring further.

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'];