1 · Remember
nlqdb_remember({
category: "user_preference",
content: "prefers concise replies",
user_id: "u_412"
}) → { id: 4129, ok: true }
The row lands in agent_memory — typed columns, not an
opaque vector blob.
Give your agent a real Postgres database as memory — typed rows it writes as it learns, queried in English.
Connect it to your agent.
Install in your agent.
Anonymous — the configs ship with the
pk_live_REPLACE_ME placeholder.
Sign in (free) to inline your live key →
Or spin one up yourself —
Anonymous — no sign-in. Your DB lives 72h; sign in (always free) to keep it.
What your agent does with it.
1 · Remember
nlqdb_remember({
category: "user_preference",
content: "prefers concise replies",
user_id: "u_412"
}) → { id: 4129, ok: true }
The row lands in agent_memory — typed columns, not an
opaque vector blob.
2 · Recall
nlqdb_recall({
question: "feedback per user, ranked by count this month"
}) Compiled SQL (the exact statement nlqdb ran):
SELECT user_id, COUNT(*) AS feedback
FROM agent_memory
WHERE category = 'user_preference'
AND created_at >= date_trunc('month', now())
GROUP BY user_id
ORDER BY feedback DESC; | User ID | Feedback |
|---|---|
| u_412 | 14 |
| u_207 | 9 |
| u_388 | 6 |
| u_104 | 4 |
nlqdb_recall(…)
Not building an agent? nlqdb is also a natural-language database you embed in any app — describe data, drop one tag →
The error has been recorded. Reload to recover; if it persists, sign out and back in.