When Cognis extracts facts from conversation messages, each memory is automatically assigned a category. This enables filtered retrieval and helps organize what the agent knows about a user.Documentation Index
Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
Use this file to discover all available pages before exploring further.
Default Categories
| Category | Description | Example |
|---|---|---|
identity | Personal identity, name, demographics, age, location | ”Alice is 28 years old” |
relationships | Family, friends, social connections, pets | ”Alice has a dog named Max” |
work_career | Job, profession, workplace, colleagues, business | ”Alice works at Google as a data scientist” |
learning | Education, skills, knowledge, certifications, languages | ”Alice speaks French and Python” |
wellness | Health, fitness, medical conditions, diet, exercise | ”Alice runs 5K every morning” |
lifestyle | Daily habits, routines, sleep, transportation | ”Alice commutes by bike” |
interests | Hobbies, passions, entertainment, sports, games | ”Alice loves hiking and Taylor Swift” |
preferences | Likes, dislikes, choices, favorites, style | ”Alice prefers dark mode” |
plans_goals | Future plans, aspirations, goals, dreams, intentions | ”Alice plans to visit Japan next year” |
experiences | Past events, travel, memories, experiences | ”Alice went to Bali last summer” |
opinions | Views, beliefs, attitudes, philosophical | ”Alice thinks remote work is more productive” |
context | Session-specific context, current tasks, immediate needs | ”Alice is debugging a FastAPI endpoint” |
misc | Anything that doesn’t fit other categories | General facts |
Accessing Categories
Categories are stored in the memory’s metadata:Custom Categories
Override the defaults by passing a custom dictionary toCognisConfig:
How Categorization Works
Duringadd(), the LLM extraction step:
- Reads the conversation messages
- Extracts discrete facts as individual memory records
- Assigns each fact to the most appropriate category from the configured list
- Checks for duplicates against existing memories (threshold: 0.85 similarity)
- Stores new facts or updates existing ones with versioning