In-process retrieval memory store backed by ETS.
Summary
Functions
Clears all memories from a namespace and returns the number removed.
Ensures the ETS table exists.
Returns all memory entries in a namespace.
Recalls top-k memories for a query using simple token-overlap scoring.
Inserts or updates a memory entry in the given namespace.
Types
@type memory() :: %{ :id => String.t(), :text => String.t(), optional(:metadata) => map(), optional(:inserted_at_ms) => non_neg_integer(), optional(:updated_at_ms) => non_neg_integer() }
Functions
@spec clear(String.t()) :: non_neg_integer()
Clears all memories from a namespace and returns the number removed.
@spec ensure_table!() :: :ok
Ensures the ETS table exists.
Returns all memory entries in a namespace.
Recalls top-k memories for a query using simple token-overlap scoring.
Inserts or updates a memory entry in the given namespace.