Skip to Content

Core Concepts

Memory types

The type you send with a capture, the type Docklee assigns, and the storage class recall returns.

A memory carries three kinds of type. You choose one, Docklee assigns one, and recall reports one. Each answers a different question.

TypeSet byAnswersWhere you see it
Capture typeYou, with typeWhere should this event go?The request
Memory typeDockleeWhat kind of memory is this?The dashboard
Storage classDockleeHow is this record stored?memory_type in recall results

Capture type

The type you pass to capture tells Docklee what you're sending. When a Dock declares both a container and a memory space, the type decides where each event goes.

TypeUse it forGoes to
conversationMessages and turns from a chat or call. This is the default.Memory space
eventSomething that happened, such as a renewal or a ticket.Memory space
preferenceHow a person likes things done.Memory space
entityA person, company, or product your app tracks.Memory space
documentLonger written content.Container
knowledgeReference facts for an engine.Container
dock.capture("Maya prefers email.", type="preference")
dock.capture("Maya works at Northwind.", type="entity")
dock.capture("Maya renewed her plan.", type="event")

Memory type

Docklee reads every memory and assigns a type that describes it. Types aren't a fixed list, so a memory gets the label that fits it best.

Common typesExample
Fact"Northwind has 40 seats."
Preference"Maya prefers email."
Event"Maya renewed her plan."
Decision"We chose the annual plan."
Policy"Refunds need manager approval over $500."
Relationship"Maya reports to Omar."

The memory type drives how Docklee treats a memory. Policies and decisions are kept in full detail. Events are the first to be summarized when they grow old. See Consolidation.

Storage class

Recall results carry a memory_type field (memoryType in TypeScript). It's the storage class of the record, not the memory type above.

Memories written through Dock have the storage class entity. The other storage classes are episodic, document, system, and derived.

Rank and filter recall results by confidence, not by memory_type. Most memories you write through Dock share the same storage class.

Next steps

You know how types work. Attach your own data to memories next.

On this page