Skip to main content
Learning stores use predefined schemas by default. Extend them with custom fields to capture domain-specific information.

Extending User Profile

The default UserProfile includes name and preferred_name. Add fields for your domain:
Use the custom schema:

Field Guidelines

Use Metadata Descriptions

The metadata={"description": ...} tells the LLM what to extract:

Use Optional Fields

All custom fields should be Optional with defaults:

Document Constrained Values

For fields with known options, list them in the description:

Domain Examples

SaaS Support

Developer Tools

Extending Other Schemas

Entity Memory

Learned Knowledge

Full Example