You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -92,8 +96,9 @@ It's all in one database, with vector + BM25 + full-text + trigram + PostGIS sea
92
96
-**`autonomy_records`** — self-managed knowledge units the agent writes for itself (goals, notes-to-self, learned facts), with self-referential many-to-many links (`autonomy_record_links`) so the agent builds its own knowledge graph.
93
97
-**`notes`** — long-form knowledge with **chunked embeddings**: a single note gets split into multiple vector rows automatically so retrieval works on long documents.
94
98
-**Cross-domain memory junctions** — `contact_memories`, `company_memories` tie memories to the people/orgs they're about, so the agent can pull "everything I remember about Alice" in one query.
99
+
-**Document junctions** — `company_documents`, `project_documents` link version-controlled documents to CRM entities.
95
100
-**Agent-attributed memories** — every memory can carry an `agent_id` FK so multi-agent setups get isolated or shared memory.
96
-
-**Chunk-aware search** — `contacts_chunks`and `notes_chunks` let the agent retrieve the *relevant paragraph* of a long record, not the whole record.
101
+
-**Chunk-aware search** — `contacts_chunks`, `notes_chunks`, and `documents_chunks` let the agent retrieve the *relevant paragraph* of a long record, not the whole record.
97
102
-**Tags as first-class citizens** — `citext[]` tag columns on every memory-ish table, GIN-indexed, so filtering by `['hackathon','kris-floyd']` is fast.
98
103
99
104
### 💬 Chats / Conversations
@@ -141,21 +146,22 @@ It's all in one database, with vector + BM25 + full-text + trigram + PostGIS sea
141
146
-`memory.nearbyMemories` — self-join, "what else happened near this memory?" (1 km default)
142
147
143
148
All 5 use `st_dwithin` with a per-query `distance` param, so radius is a query-time input not a schema constant. Each renders server-side as an `EXISTS (… ST_DWithin(geo_a, geo_b, $distance) …)` subquery — zero GeoJSON on the wire.
144
-
-**Chunked long-doc retrieval** on contactsand notes.
149
+
-**Chunked long-doc retrieval** on contacts, notes, and documents.
145
150
146
151
### 🌍 World model (context the agent needs to actually help you)
-**Staging tables** (`raw_contacts`, `raw_contact_emails`, etc.) for messy import pipelines before normalizing into `contacts`.
153
-
-**~25 cross-domain M:N junctions** so your agent can answer "notes about Alice from the partner summit" without schema gymnastics.
159
+
-**~27 cross-domain M:N junctions** so your agent can answer "notes about Alice from the partner summit" or "documents linked to this project" without schema gymnastics.
The worker generates embeddings for all tables with `SearchUnified` or `SearchVector` nodes. Contactsand notes also get chunked embeddings for long-document search.
372
+
The worker generates embeddings for all tables with `SearchUnified` or `SearchVector` nodes. Contacts, notes, and documents also get chunked embeddings for long-document search.
367
373
368
374
## Testing
369
375
@@ -386,8 +392,8 @@ This repo ships with [Agent Skills](https://github.com/agent-skills/agent-skills
386
392
| Skill | Description |
387
393
|-------|-------------|
388
394
|`pgpm`| Install and deploy agentic-db using pgpm |
389
-
|`cli-default`| CLI command reference for all 91 tables |
390
-
|`orm-default`| Type-safe ORM client reference for all 91 tables |
395
+
|`cli-default`| CLI command reference for all 95 tables |
396
+
|`orm-default`| Type-safe ORM client reference for all 95 tables |
391
397
|`agent/memories`| Storing and retrieving long-term agent memories |
0 commit comments