Documentation
Memory Stream Database
⚠️

The client for the memory stream API will be added with v2.0.0

Memory Stream Database

Smallville can also be used for just it's memory stream database, without needing to create agents. The memory stream is different from vector databases because memories are retrieved by recency and importance in addition to relevancy.

Create a new connection

Install the smallville server and setup the clients.

Use the memory stream through the clients

Use the cilents to store and retrieve memories.

Create a new memory stream

UUID uuid = client.createMemoryStream();

Add new memories

client.addMemory(uuid, "John went to the mall");

Fetch the 3 most relevant memories

List<String> memories = client.fetchMemories(uuid, "John went to the mall");