Knowledge
client.knowledge provides access to the structured knowledge base built automatically from processed memories. As memories are created and enriched, Memsolus extracts facts and organizes them into categorized knowledge entries that represent what is known about each user.
list
Lists knowledge entries for a user or workspace. When merged: true, returns a single unified Markdown document combining all knowledge categories — the recommended way to load full user context at the start of a conversation.
Signature
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | No | Filter entries to a specific user |
category | string | No | Filter entries to a specific category |
merged | boolean | No | When true, returns MergedKnowledge instead of a paginated list |
page | number | No | Page number for paginated results (default 1) |
limit | number | No | Results per page (default 20) |
Loading the full user profile
Use merged: true at the start of a conversation to get the complete knowledge profile as a single Markdown document:
Browsing individual entries
Use paginated listing when you want to inspect individual knowledge entries:
Filtering by category
Categories correspond to the tags applied when memories are created. Common categories include tech-stack, preferences, projects, context, and any custom tags you define:
get
Retrieves a specific knowledge entry by its ID.
Signature
Example
Throws NotFoundError if the knowledge entry does not exist or does not belong to the workspace.
How knowledge is built
Knowledge entries are not created directly — they are derived automatically from memories after they are processed. When multiple memories share related facts, they are consolidated into a single knowledge entry per category per user. The content of each entry is a Markdown summary of everything known in that category.
This means:
- You cannot create or update knowledge entries directly
- Storing more memories with consistent categories produces richer knowledge entries
- The
mergedprofile grows more accurate over time as more memories are processed
Related
- Memories — create memories that feed into knowledge
- Knowledge Graph — search entities extracted from memories
- Type Reference —
Knowledge,MergedKnowledge, and related types