Skip to main content

Module long_term

Module long_term 

Source
Expand description

PgvectorLongTermLongTermMemory over one Postgres table with a vector(dim) column (HNSW, cosine) and scope_kind / scope_value filter columns. Metadata is stored as jsonb.

The table is provisioned lazily on first remember; a read that races ahead of it maps the undefined_table error to an empty result.

Structs§

PgvectorLongTerm
LongTermMemory + FilterableLongTermMemory over the single table described in the module docs; cosine recall via the HNSW index, scope enforced by the scope_kind/scope_value columns.