marvin.memory.providers.postgres
Classes
PostgresMemory
addInsert a new record with an embedding vector. Returns the inserted record’s UUID.configure- Create an async engine.
- Optionally create the DB if it doesn’t exist (requires sync workaround).
- Install pgvector extension.
- Generate the memory table if missing.
- Initialize the async sessionmaker.
deleteDelete a record by UUID.searchAsync nearest-neighbor search via pgvector <-> operator or .l2_distance(), returning up to N results as {id: text}.
SQLMemoryTable
Parent Module:
providers