learn
Save a distilled rule, convention, or 'do it this way' insight so it outranks ordinary results in local semantic search. Background indexing scrubs sensitive data automatically.
Instructions
Use learn to save a distilled lesson that should outrank ordinary results for related queries -- a rule, a convention, a "do it this way" insight, not a one-off fact.
remember = a specific durable fact, ingest = a URL, learn = a distilled lesson that gets retrieval preference.
The daemon scrubs secrets/PII before indexing, same as remember. Lessons are capped at 500 characters -- use remember for anything longer. Returns immediately -- the daemon indexes in the background.
Args: lesson: The distilled lesson text (<= 500 chars). topic: Optional domain tag (e.g. "testing", "release-process"). name: Optional user-visible slug for later reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| topic | No | ||
| lesson | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |