Knowledge Bases
Workspace-scoped document stores with vector search.
Knowledge Bases
Knowledge Bases are workspace-scoped document collections. Unlike memories (which are created from agent interactions), knowledge bases hold static reference material: documentation, policy documents, product specs, etc.
Schema
Difference from Memories
| Memories | Knowledge Entries | |
|---|---|---|
| Scope | Workspace + optional thread/workflow/user | Workspace (via knowledge base) |
| Created by | Agent interactions | Manual ingestion / import |
| Deduplication | Semantic superseding | None (duplicates allowed) |
| Profiling | factType grouping | Not applicable |
| Mutation | Superseded, not edited | Immutable after insert |
API Endpoints
| Method | Path | Description |
|---|---|---|
GET | /workspaces/:wId/knowledge | List knowledge bases |
POST | /workspaces/:wId/knowledge | Create knowledge base |
GET | /workspaces/:wId/knowledge/:id | Get base with entry count |
PATCH | /workspaces/:wId/knowledge/:id | Update name/description |
DELETE | /workspaces/:wId/knowledge/:id | Delete base + all entries |
GET | /workspaces/:wId/knowledge/:id/entries | List entries |
POST | /workspaces/:wId/knowledge/:id/entries | Add entry |
DELETE | /workspaces/:wId/knowledge/:id/entries/:eId | Remove entry |
POST | /workspaces/:wId/knowledge/:id/search | Search entries |
Search
The search endpoint currently uses ilike keyword matching. It is designed to be upgraded to pgvector cosine search once embeddings are generated on entry insert: the embedding column is already present in the schema.
Frontend
The knowledge UI is at /knowledge. It lists all bases in the active workspace. Selecting a base opens an entry list with search. Knowledge bases span all spaces: they are workspace-wide shared resources.