> For the complete documentation index, see [llms.txt](https://docs.seldon.ai/llm-module/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seldon.ai/llm-module/resources/reference/memory.md).

# Conversational Memory

## MemorySettings

Memory base settings.

### **database: `Literal["filesys", "sql"]`**

**Description:** Supported Database backends. The `"filesys"` backend is recommended only for testing/development purposes - persists memory data to local file system. The `"sql"` backend any SQL database supported by SQLAlchemy. Namely, SQLite, PostgreSQL, MySQL, etc.

### **config: `Optional[Union[FileSysSettings, SQLSettings]]`**

**Description:** Database configuration.\
**Default:** `None`

### **prompt\_utils: `Optional[PromptUtilsSettings] = None`**

**Description:** Prompt utils configurations.\
**Default:** `None`

## FileSysSettings

File system database configuration.

### **model\_type: `Literal["chat.completions"]`**

**Description:** The model type. Only `"chat.completions"` is supported for the Memory Runtime.\
**Default:** `"chat.completions"`

### **`path: Union[str, Path]`**

**Description:** The path to the database.\
**Default:** `"data"`

### **window\_size: `int`**

**Description:** The number of messages to return from the conversation history including the system message.\
**Default:** `10`

### **tensor\_names: `List[str]`**\*

**Description:** The names of the tensors to store in the history.\
**Default:** `["role", "content", "type"]`

## SQLSettings

SQL database configuration.

### **model\_type: `Literal[chat.completions]`**

**Description:** The model type. Only `"chat.completions"` is supported for the Memory Runtime.\
**Default:** `"chat.completions"`

### **url: `str`**

**Description:** The database URL.

### **connection\_options: `dict`**

**Description:** The connection options for the database.\
**Default:** `{}`

### **window\_size: `int`**

**Description:** The number of messages to return from the conversation history including the system message.\
**Default:** `10`

### **tensor\_names: `List[str]`**

**Description:** The names of the tensors to store in the history.\
**Default:** `["role", "content", "type"]`
