-
-
Notifications
You must be signed in to change notification settings - Fork 119
Glossary
DB-persisted term registry for CortexPrism, providing a centralized dictionary of domain terms with alias resolution and category filtering. Implemented in packages/ai/src/memory/glossary.ts with persistence via semantic_memory (__glossary__ category prefix).
Each term has:
| Field | Type | Description |
|---|---|---|
| Name (key) | string |
Canonical term name, stored lowercase |
definition |
string |
Term definition text |
aliases |
string[] |
Alternative names for the same concept |
category |
string |
Grouping category, default "general"
|
defineTerm(name: string, definition: string, category?: string, aliases?: string[]): voidRegisters a term in the in-memory map. The name is normalized to lowercase. Aliases are also lowercased.
defineTerm("RAG", "Retrieval-Augmented Generation — combines LLMs with external data retrieval", "ai-concepts", ["retrieval-augmented-generation"]);lookupTerm(name: string): { name, definition, aliases, category } | nullResolves a term by name or alias, case-insensitive. Returns null if not found.
Resolution order:
- Direct match against canonical name (lowercase)
- Scan all terms for matching alias
Returns the canonical name (original casing), definition, aliases, and category.
listTerms(category?: string): Array<{ name, definition, category }>Lists all terms, optionally filtered by category. Returns simplified objects (no aliases in output).
getCategories(): string[]Returns all unique categories in sorted order.
All terms are stored with DB persistence via semantic_memory (__glossary__ category prefix). All functions (defineTerm, lookupTerm, listTerms, getCategories) are async and load from the database. Terms survive restarts.
| Method | Path | Description |
|---|---|---|
POST |
/api/glossary |
Define a new term |
GET |
/api/glossary |
List terms (query: ?category=) |
curl -X POST http://localhost:3000/api/glossary \
-H "Content-Type: application/json" \
-d '{"name":"A2A","definition":"Agent-to-Agent protocol for AI interop","category":"protocols","aliases":["agent2agent","a2a-protocol"]}'- A2A Protocol — One of the protocols definable in the glossary
- MCP Gateway — MCP terminology
- Memori Checkpoints — Memory system that can reference glossary terms
CortexPrism — Open-source AI agent operating system · Discord · Apache 2.0 License · Built with Deno 2.x + TypeScript
- Agent Loop
- Built-in Agents
- Metacognition
- Memory System
- Skills System
- Sub-Agents
- Built-in Tools
- Code Intelligence
- Code Sandbox
- Cross-Agent Context Protocol
- Prompt Lab
- PKM Assistant
- Voice Pipeline
- Computer Use
- Browser Tool
- Git & GitHub
- Scheduler & Jobs
- Dashboard
- Observability
- A2A Protocol
- MCP Gateway
- Distributed Nodes
- Memori Checkpoints
- Eval System
- Workflow Engine
- Triggers
- Projects
- TUI
- Glossary
- Update System
- Chrome Bridge
- Swarm
- AgentLint
- Model Benchmarking
- Smart Context
- Cost Optimizer