Skip to main content
Enterprise Support Available
Spice.ai Enterprise provides full support for up to 3 years from the release date.
Version: v1.6

Language Model Memory

Spice provides memory persistence tools that help language models store and retrieve information across conversations. These tools are available through the memory tool group.

Enabling Memory Tools​

To enable memory tools for Spice models, define a store memory dataset and specify memory in the model's tools parameter.

Example: Enabling Memory Tools​

datasets:
- from: memory:store
name: llm_memory
mode: read_write

models:
- name: memory-enabled-model
from: openai:gpt-4o
params:
tools: memory, sql # Can be combined with other tool groups

For more information on tools, see Tool components.