> ## 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.

# MemoryType

> Classification of memory storage and retrieval patterns.

## 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

```typescript theme={null}
type MemoryType = "episodic" | "semantic";
```

| Value        | Description                                                                                       |
| ------------ | ------------------------------------------------------------------------------------------------- |
| `"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

```typescript theme={null}
import { MemoryType } from '@memmachine/client';

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